/* settings-terms.css */
:root { --sd-grad-dark: linear-gradient(135deg, #2a1a33, #1a0f20); --sd-grad-accent: linear-gradient(135deg, #ff3f6c, #f5c451); --sd-hero-bg: linear-gradient(135deg, #fff7fb 0%, #fff 52%, #fff8e5 100%); --sd-hero-shadow: 0 18px 42px rgba(255, 63, 108, .10); --sd-notice-bg: rgba(255, 63, 95, 0.1); --sd-highlight: #f5c451; }
html.dark { --sd-hero-bg: var(--sd-grad-dark); --sd-hero-shadow: 0 20px 52px rgba(0, 0, 0, .28); }
/* 兩欄/三欄佈局 */
.settings-detail-shell { display: flex; min-height: 100vh; background: var(--sd-bg); }
.settings-detail-panel { width: 100%; min-height: 100vh; background: var(--sd-panel); border-left: 1px solid var(--sd-line); border-right: 1px solid var(--sd-line); flex-shrink: 0; }
.settings-detail-content-panel { display: none; flex: 1; min-height: 100vh; background: var(--sd-panel); border-right: 1px solid var(--sd-line); }
/* RWD 控制 */
@media (max-width: 1023px) {
/* 預設沒有詳細內容時，顯示選單，隱藏內容 */
.settings-detail-shell .settings-detail-panel { display: block; }
.settings-detail-shell .settings-detail-content-panel { display: none; }
/* 當有詳細內容時，隱藏選單，顯示內容 */
.settings-detail-shell.has-detail .settings-detail-panel { display: none; }
.settings-detail-shell.has-detail .settings-detail-content-panel { display: flex; flex-direction: column; min-height: 100vh; width: 100%; }
.settings-detail-shell.has-detail .settings-detail-content-body { padding: 20px; }
}
@media (min-width: 1024px) {
.settings-detail-shell { overflow: hidden; height: 100vh; }
.settings-detail-panel { width: 380px; height: 100%; overflow-y: auto; margin: 0 !important; } /* 覆蓋原本的 margin: 0 auto */
.settings-detail-content-panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.settings-detail-content-body { flex: 1; overflow-y: auto; padding: 30px; }
/* 寬螢幕下隱藏右側條款面板的返回按鈕，但保留高度對稱 */
.settings-detail-content-panel .settings-detail-back { visibility: hidden; }
}
/* 為了控制在 PHP 動態 activeId 下 RWD 顯示的狀態，我們可以為 shell 加上 class 或者利用 CSS 來根據是否有 detail 進行控制 */
/* 由於我們在 PHP 裡決定了 activeId，我們可以在 HTML wrapper 上加上 .has-detail 或在 CSS 中直接控制 */
/* 選中狀態高亮 */
.settings-detail-row.is-active { background: var(--sd-soft) !important; }
.settings-detail-row.is-active strong { color: var(--sd-accent) !important; }
/* 條款內容專屬樣式 */
.legal-content { max-width: 860px; margin: 0 auto; color: var(--sd-text); }
.legal-content h1 { margin: 0 0 12px; font-size: 24px; font-weight: 800; color: var(--sd-text); }
.legal-content h2 { margin: 32px 0 12px; font-size: 18px; font-weight: 700; color: var(--sd-text); border-bottom: 1px solid var(--sd-line); padding-bottom: 8px; }
.legal-content h3 { margin: 22px 0 10px; font-size: 15px; font-weight: 700; color: var(--sd-text); }
.legal-content p, .legal-content li { color: var(--sd-muted); line-height: 1.8; font-size: 14px; margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin: 12px 0; }
.legal-content li { margin-bottom: 8px; }
.legal-content .toc { background: var(--sd-soft); border-radius: 8px; padding: 18px; margin-bottom: 24px; }
.legal-content .toc a { display: block; padding: 8px 0; color: var(--sd-muted); text-decoration: none; border-bottom: 1px dashed var(--sd-line); font-size: 14px; }
.legal-content .toc a:hover { color: var(--sd-accent); }
.legal-content .meta { color: var(--sd-muted); font-size: 12px; margin-bottom: 24px; opacity: 0.8; }
.legal-content strong { color: var(--sd-text); }
.legal-content .card { background: var(--sd-soft); border: 1px solid var(--sd-line); border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.legal-content .compliance-notice { background: var(--sd-notice-bg); border-left: 4px solid var(--sd-accent); padding: 12px 16px; margin: 16px 0; border-radius: 4px; color: var(--sd-text); font-size: 14px; }
/* 關於我們頁面的特別樣式 */
.legal-content .hero-about { background: var(--sd-hero-bg); border: 1px solid var(--sd-line); border-radius: 12px; padding: 40px 24px; text-align: center; margin-bottom: 24px; box-shadow: var(--sd-hero-shadow); }
.legal-content .hero-about h1 { margin: 12px 0 6px; font-size: 28px; background: var(--sd-grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.legal-content .stat { text-align: center; }
.legal-content .stat .v { font-size: 24px; font-weight: 800; color: var(--sd-text); background: var(--sd-grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.legal-content .stat .l { font-size: 12px; color: var(--sd-muted); margin-top: 4px; }
.legal-content .grid { display: grid; gap: 16px; }
.legal-content .grid-4col { grid-template-columns: repeat(4, 1fr); }
.legal-content .grid-2col { grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 640px) {
.legal-content .grid-4col { grid-template-columns: repeat(2, 1fr); }
.legal-content .grid-2col { grid-template-columns: 1fr; }
}
.legal-content .val { display: flex; gap: 14px; align-items: flex-start; }
.legal-content .val .ic { font-size: 24px; width: 36px; text-align: center; flex-shrink: 0; }
.legal-content .milestone { position: relative; padding-left: 22px; border-left: 2px solid var(--sd-line); margin-left: 8px; }
.legal-content .milestone .dot { position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--sd-accent); border: 3px solid var(--sd-panel); }
.legal-content .milestone .it { padding: 0 0 20px 0; }
.legal-content .milestone .dt { color: var(--sd-highlight); font-weight: 700; font-size: 13px; }
.legal-content .milestone .ti { color: var(--sd-text); font-weight: 700; margin: 2px 0; }
.legal-content .milestone .ds { color: var(--sd-muted); font-size: 13px; }
/* 用於大螢幕時內容 placeholder */
.settings-detail-content-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--sd-muted); font-size: 15px; opacity: 0.7; text-align: center; padding: 20px; }
.settings-detail-content-placeholder svg { width: 48px; height: 48px; margin-bottom: 16px; stroke: currentColor; }
.about-opportunity-links { margin-top: 36px; padding: 24px; border: 1px solid var(--sd-line); border-radius: 14px; background: var(--sd-soft); }
.about-opportunity-links h2 { margin-top: 0; }
.about-opportunity-links div { display: flex; flex-wrap: wrap; gap: 10px; }
.about-opportunity-links a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; background: var(--sd-grad-accent); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
