/* ============================================================
   SunnyFish New · Legal Pages (StashMap-inspired, light theme)
   Keeps legal-* class names so page content markup is unchanged.
   ============================================================ */

:root {
    --paper: #f1f4ef;
    --surface: #ffffff;
    --surface-2: #e9eee7;
    --text: #102016;
    --text-2: #526057;
    --text-3: #7b867e;
    --line: rgba(16, 32, 22, 0.1);
    --accent: #36e56b;
    --accent-soft: rgba(54, 229, 107, 0.14);
    --on-accent: #06120e;
    --link: #176934;
    --r-lg: 16px;
    --r-md: 12px;
    --shadow: 0 10px 30px rgba(16, 32, 22, 0.06);
    --shadow-lg: 0 24px 60px rgba(16, 32, 22, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
    padding: 0;
}

/* ---------- Header ---------- */
.legal-header {
    background: rgba(241, 244, 239, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.legal-logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.legal-logo-sunny {
    color: #b45309;
}

.legal-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.legal-nav a {
    color: var(--text-2);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-nav a:hover {
    color: var(--text);
}

/* ---------- Main Content ---------- */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 28px 80px;
}

.legal-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.legal-updated {
    color: var(--text-3);
    font-size: 15px;
    margin-bottom: 36px;
}

.legal-highlight {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 12px;
}

.legal-highlight p {
    margin: 0;
    color: var(--text);
}

.legal-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 18px 0;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--link);
    margin: 26px 0 14px 0;
}

.legal-section p {
    color: var(--text-2);
    margin-bottom: 14px;
    line-height: 1.7;
}

.legal-section .muted {
    color: var(--text-3);
}

.legal-section ul,
.legal-section ol {
    color: var(--text-2);
    margin: 14px 0;
    padding-left: 26px;
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-section a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--accent-soft);
    color: var(--link);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    color: var(--text-2);
}

tr:last-child th,
tr:last-child td {
    border-bottom: none;
}

/* ---------- Footer ---------- */
.legal-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 36px 28px;
    margin-top: 40px;
}

.legal-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.legal-footer p {
    color: var(--text-3);
    font-size: 13px;
    margin: 6px 0;
}

.legal-footer a {
    color: var(--link);
    text-decoration: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .legal-header-inner {
        padding: 14px 20px;
    }

    .legal-logo {
        font-size: 16px;
    }

    .legal-logo-icon {
        width: 26px;
        height: 26px;
    }

    .legal-nav {
        gap: 14px;
    }

    .legal-nav a {
        font-size: 13px;
    }

    .legal-container {
        padding: 38px 20px 60px;
    }

    .legal-title {
        font-size: 30px;
    }

    .legal-section {
        padding: 22px 20px;
    }

    .legal-section h2 {
        font-size: 22px;
    }

    .legal-section h3 {
        font-size: 17px;
    }

    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 11px 12px;
    }
}

@media (max-width: 520px) {
    .legal-nav {
        display: none;
    }

    .legal-title {
        font-size: 26px;
    }

    .legal-section {
        padding: 18px 16px;
    }

    .legal-section h2 {
        font-size: 20px;
    }
}

