/* CoFinance Tracker - Main Styles */

:root {
    --cf-primary: #4361ee;
    --cf-secondary: #3f37c9;
    --cf-success: #4cc9f0;
    --cf-warning: #f72585;
    --cf-bg: #f8f9fa;
    --cf-card-bg: #ffffff;
    --cf-text: #212529;
    --cf-text-muted: #6c757d;
    --cf-border: #dee2e6;
    --cf-sidebar-width: 260px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--cf-bg);
    color: var(--cf-text);
    margin: 0;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--cf-sidebar-width);
    background: var(--cf-primary);
    color: white;
    padding: 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar .brand {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.sidebar .nav-item:hover,
.sidebar .nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.main-content {
    flex: 1;
    margin-left: var(--cf-sidebar-width);
    padding: 1.5rem 2rem;
}

/* Cards */
.cf-card {
    background: var(--cf-card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-cf {
    background: var(--cf-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-cf:hover { opacity: 0.9; }
.btn-cf-outline {
    background: transparent;
    color: var(--cf-primary);
    border: 1px solid var(--cf-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
}

/* Transaction card for mobile */
.tx-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cf-border);
}

.tx-card:last-child { border-bottom: none; }

.tx-info { display: flex; align-items: center; gap: 0.75rem; }

.tx-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: #f0f0f0;
}

.tx-amount { font-weight: 600; font-size: 1rem; }
.tx-amount.expense { color: #e74c3c; }
.tx-amount.income { color: #27ae60; }

/* Stats cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--cf-card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-label { font-size: 0.85rem; color: var(--cf-text-muted); margin-bottom: 0.25rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

/* Forms */
.cf-form-group {
    margin-bottom: 1rem;
}

.cf-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.9rem;
}

.cf-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.cf-input:focus {
    outline: none;
    border-color: var(--cf-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Modal */
.cf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.cf-modal {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

/* 教學文件的截圖佔位框：虛線邊框＋提示文字，之後補真實截圖時直接換成 <img> 即可移除此 class。 */
.cf-guide-placeholder {
    border: 2px dashed var(--cf-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: var(--cf-text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    background: #fafafa;
}

/* Mobile bottom nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--cf-border);
    padding: 0.5rem 0;
    z-index: 1000;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--cf-text-muted);
    font-size: 0.7rem;
    padding: 0.25rem;
}

.bottom-nav-item.active { color: var(--cf-primary); }
.bottom-nav-item .icon { font-size: 1.3rem; }

/* Loading */
.cf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--cf-text-muted);
}

/* Tables */
.cf-table {
    width: 100%;
    border-collapse: collapse;
}

.cf-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid var(--cf-border);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cf-text-muted);
}

.cf-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--cf-border);
}

/* Badge */
.cf-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cf-badge-expense { background: #ffeef0; color: #e74c3c; }
.cf-badge-income { background: #e8f8f0; color: #27ae60; }

/* 方案徽章：個人設定「帳號資訊」內顯示付費／免費／訪客，配色由元件內聯指定 */
.cf-plan-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: middle;
}

/* 側欄方案 CTA：Free 顯示升級小卡、Premium 顯示付費徽章（Guest 由 GuestModeBanner 負責） */
.cf-plan-cta {
    display: block;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.cf-plan-cta:hover { background: rgba(255,255,255,0.2); }

.cf-plan-cta-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.cf-plan-cta-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
}

.cf-plan-cta-premium {
    margin-top: 1.5rem;
    padding: 0 1rem;
}

/* Auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cf-primary), var(--cf-secondary));
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--cf-text-muted);
    margin-bottom: 2rem;
}

.auth-error {
    background: #ffeef0;
    color: #e74c3c;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* 中性提示（非錯誤），例如閒置自動登出後的說明 */
.auth-notice {
    background: #eef2ff;
    color: #3f37c9;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; padding-bottom: 5rem; }
    .bottom-nav { display: block; }
    .desktop-only { display: none !important; }
}

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}


/* ================= Month Calendar ================= */
.cf-calendar {
    background: var(--cf-card-bg);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cf-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.cf-calendar-title {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.cf-calendar-title:hover { background: rgba(67,97,238,0.1); }

.cf-calendar-nav {
    background: transparent;
    border: 1px solid var(--cf-border);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--cf-text);
}

.cf-calendar-nav:hover { background: rgba(0,0,0,0.04); }

.cf-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    color: var(--cf-text-muted);
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--cf-border);
}

.cf-calendar-weekdays > div { padding: 0.375rem 0; font-weight: 500; }
.cf-calendar-weekdays > div.weekend { color: #e74c3c; }

.cf-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--cf-border);
    border: 1px solid var(--cf-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.cf-day-cell {
    background: #fff;
    min-height: 78px;
    padding: 0.35rem 0.4rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: background 0.1s;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.cf-day-cell:hover { background: #f5f7ff; }
.cf-day-cell.other-month { background: #fafbfc; color: #b0b5bc; }
.cf-day-cell.today .cf-day-num {
    background: var(--cf-primary);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cf-day-cell.selected { box-shadow: inset 0 0 0 2px var(--cf-primary); background: #eef2ff; }
.cf-day-cell.weekend .cf-day-num { color: #e74c3c; }
.cf-day-cell.today.weekend .cf-day-num { color: #fff; }

.cf-day-num { font-size: 0.85rem; font-weight: 500; }
.cf-day-expense { font-size: 0.75rem; color: #e74c3c; font-weight: 500; }
.cf-day-income { font-size: 0.75rem; color: #27ae60; font-weight: 500; }

@media (max-width: 768px) {
    .cf-day-cell { min-height: 62px; padding: 0.25rem 0.3rem; }
    .cf-day-num { font-size: 0.78rem; }
    .cf-day-expense, .cf-day-income { font-size: 0.68rem; }
}

/* Month Picker Popover */
.cf-month-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}
.cf-month-picker {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    width: min(92vw, 360px);
    max-height: 80vh;
    overflow: auto;
}
.cf-month-picker h4 { margin: 0 0 0.75rem; font-size: 1rem; }
.cf-mp-year-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cf-mp-year { font-weight: 600; font-size: 1.05rem; }
.cf-mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.cf-mp-cell {
    padding: 0.6rem 0;
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}
.cf-mp-cell:hover { background: #f0f4ff; }
.cf-mp-cell.selected { background: var(--cf-primary); color: #fff; border-color: var(--cf-primary); }

/* ================= Day Detail Drawer ================= */
.cf-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.cf-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.cf-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 380px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 1900;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.cf-drawer.open { transform: translateX(0); }
.cf-drawer-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--cf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cf-drawer-title { font-size: 1.05rem; font-weight: 600; margin: 0; }
.cf-drawer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--cf-text-muted);
    width: 32px; height: 32px;
    border-radius: 8px;
}
.cf-drawer-close:hover { background: rgba(0,0,0,0.06); }
.cf-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cf-drawer-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--cf-border);
    background: #fafbfc;
}

.cf-drawer-summary {
    display: flex; gap: 1rem; padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--cf-border);
    margin-bottom: 1rem;
}
.cf-drawer-summary > div { flex: 1; }
.cf-drawer-summary .label { font-size: 0.75rem; color: var(--cf-text-muted); }
.cf-drawer-summary .val { font-size: 1.15rem; font-weight: 700; }

/* Mobile: drawer -> bottom sheet */
@media (max-width: 768px) {
    .cf-drawer {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 75dvh;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
    }
    .cf-drawer.open { transform: translateY(0); }
    .cf-drawer-header::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px; height: 4px;
        border-radius: 2px;
        background: #d0d4db;
    }
    .cf-drawer-header { position: relative; padding-top: 1.25rem; }
}

/* ================= Segmented Tabs ================= */
.cf-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--cf-border);
    margin-bottom: 1rem;
}
.cf-tab {
    background: transparent;
    border: none;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--cf-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 500;
}
.cf-tab.active { color: var(--cf-primary); border-bottom-color: var(--cf-primary); }

/* Mobile floating segmented control */
.cf-seg-floating {
    display: none;
}
@media (max-width: 768px) {
    .cf-tabs.desktop-variant { display: none; }
    .cf-seg-floating {
        display: flex;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 74px;
        z-index: 1100;
        background: rgba(255,255,255,0.98);
        border: 1px solid var(--cf-border);
        border-radius: 999px;
        padding: 4px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    .cf-seg-floating .cf-seg-item {
        padding: 0.45rem 1.15rem;
        border-radius: 999px;
        font-size: 0.88rem;
        color: var(--cf-text-muted);
        background: transparent;
        border: none;
        cursor: pointer;
        font-weight: 500;
    }
    .cf-seg-floating .cf-seg-item.active {
        background: var(--cf-primary);
        color: #fff;
    }
}

/* ===== 第三方登入面板（ExternalLoginPanel / ExternalLoginButton）===== */
.cf-sso-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cf-sso-heading {
    text-align: center;
    color: #888;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    position: relative;
}

.cf-sso-heading::before,
.cf-sso-heading::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}

.cf-sso-heading::before { left: 0; }
.cf-sso-heading::after { right: 0; }

.cf-sso-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .cf-sso-list { grid-template-columns: 1fr; }
}

.cf-sso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    color: #24292f;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cf-sso-btn:hover:not(:disabled) {
    background: #f6f8fa;
    border-color: #afb8c1;
}

.cf-sso-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.cf-sso-icon {
    width: 20px;
    height: 20px;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

/* 品牌色變體：邊框 hover 染色，遵循各家品牌官方主色 */
.cf-sso-btn.cf-sso-line:hover:not(:disabled) {
    border-color: #06C755;
    box-shadow: 0 0 0 2px rgba(6, 199, 85, 0.12);
}

.cf-sso-btn.cf-sso-google:hover:not(:disabled) {
    border-color: #4285F4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.12);
}

.cf-sso-btn.cf-sso-apple:hover:not(:disabled) {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.cf-sso-btn.cf-sso-facebook:hover:not(:disabled) {
    border-color: #1877F2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.12);
}

.cf-sso-error {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff5f5;
    border: 1px solid #ffd4d4;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 0.875rem;
}

/* ===== LINE LIFF Layout ===== */
.liff-container {
    min-height: 100vh;
    background: var(--cf-bg, #f7f9fc);
}

.liff-main {
    padding: 0.75rem;
    max-width: 720px;
    margin: 0 auto;
}

.liff-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.liff-toolbar .cf-input { flex: 1; }

.liff-fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.liff-fallback {
    margin: 2rem auto;
    max-width: 360px;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
}

.liff-fallback h3 {
    margin-top: 0;
    color: #06c755;
}

.liff-fallback a {
    color: var(--cf-primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== Legal Pages (Privacy / Data Deletion) ===== */
.legal-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 92%;
    max-width: 720px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: left;
}

.legal-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.legal-card .legal-updated {
    font-size: 0.85rem;
    color: var(--cf-text-muted);
    margin-bottom: 1.5rem;
}

.legal-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.legal-card p,
.legal-card li {
    color: var(--cf-text-muted);
    line-height: 1.75;
    font-size: 0.925rem;
}

.legal-card ul,
.legal-card ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.legal-card a {
    color: var(--cf-primary);
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-status-box {
    background: var(--cf-bg);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
}

/* ===== 訪客模式 ===== */
/* 登入頁訪客按鈕下方的跨裝置警語 */
.auth-guest-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--cf-text-muted);
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

/* 登入後（訪客）頁面頂端的常駐警語 banner */
.cf-guest-banner {
    position: relative;
    background: #fff8e6;
    border: 1px solid #ffe2a8;
    border-radius: 12px;
    padding: 1rem 2.25rem 1rem 1rem;
    margin: 0 0 1.25rem 0;
}

.cf-guest-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6b5300;
}

.cf-guest-banner-text strong { color: var(--cf-warning); }

.cf-guest-banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: #9a8550;
    padding: 0.25rem;
}

.cf-guest-banner-close:hover { color: var(--cf-warning); }

.legal-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.legal-status-row + .legal-status-row {
    border-top: 1px solid var(--cf-border);
}

.legal-status-label {
    font-size: 0.875rem;
    color: var(--cf-text-muted);
}

.legal-status-value {
    font-weight: 600;
    font-size: 0.925rem;
}

@media (max-width: 768px) {
    .legal-card { padding: 1.5rem; }
}
