/* ==========================================================
   Simulation Memory Match — Privacy Policy
   Color palette extracted from the app logo:
   - Deep royal blue (#1e3a8a) — primary
   - Bright green (#28a745) — secondary accent
   - Golden yellow (#f5c33a) — highlight
   - Warm orange (#ef7a1a) — accent
   - Soft cream/ivory backgrounds for readability
   ========================================================== */

:root {
    --color-primary: #1e3a8a;
    --color-primary-dark: #142a66;
    --color-primary-light: #3a6fd8;
    --color-accent-green: #28a745;
    --color-accent-gold: #f5c33a;
    --color-accent-orange: #ef7a1a;

    --bg-page: #f6f8ff;
    --bg-card: #ffffff;
    --bg-soft: #eef2fb;

    --text-primary: #1c2440;
    --text-secondary: #4a5072;
    --text-muted: #6b7290;

    --border-soft: #e3e8f4;
    --divider: #e8ecf6;

    --shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.06);
    --shadow-md: 0 8px 28px rgba(30, 58, 138, 0.10);
    --shadow-lg: 0 16px 48px rgba(30, 58, 138, 0.14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --max-width: 880px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(58, 111, 216, 0.08), transparent 60%),
        radial-gradient(900px 500px at 110% 0%, rgba(40, 167, 69, 0.06), transparent 60%),
        var(--bg-page);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== HEADER ===================== */
.site-header {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 36px 0 28px;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(245, 195, 58, 0.10), transparent 50%);
    pointer-events: none;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(245, 195, 58, 0.45);
    background: #fff;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
    line-height: 1.2;
}

.brand-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(245, 195, 58, 0.18);
    color: var(--color-accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid rgba(245, 195, 58, 0.35);
    width: fit-content;
}

.header-accent {
    height: 6px;
    background: linear-gradient(90deg,
        var(--color-accent-green) 0%,
        var(--color-accent-gold) 50%,
        var(--color-accent-orange) 100%);
}

/* ===================== POLICY CONTENT ===================== */
.policy {
    padding: 48px 24px 64px;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 32px;
    margin-bottom: 36px;
    border-top: 4px solid var(--color-accent-gold);
}

.page-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 14px;
}

.effective-date {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--divider);
}

.effective-date strong {
    color: var(--color-primary);
}

.lead {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 10px;
}

.lead:last-child {
    margin-bottom: 0;
}

.policy-section {
    padding: 28px 4px;
}

.policy-section h3 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 4px solid var(--color-accent-green);
    line-height: 1.4;
}

.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.policy-section ul {
    list-style: none;
    margin: 10px 0 14px;
    padding: 0;
}

.policy-section ul li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.policy-section ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-orange));
    box-shadow: 0 0 0 3px rgba(245, 195, 58, 0.18);
}

.contact-block {
    margin-top: 6px;
    background: var(--bg-soft);
    border-left: 4px solid var(--color-primary-light);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-primary) !important;
    line-height: 1.8;
}

.contact-block a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(30, 58, 138, 0.3);
    transition: color 0.2s, border-color 0.2s;
}

.contact-block a:hover {
    color: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
}

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider) 20%, var(--divider) 80%, transparent);
    margin: 0;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: #e4e9f7;
    padding: 40px 0 28px;
    margin-top: 40px;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 14px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(245, 195, 58, 0.35);
}

.footer-meta {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.footer-meta a {
    color: var(--color-accent-gold);
    text-decoration: none;
    font-weight: 600;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    margin-top: 8px;
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--color-accent-orange), var(--color-accent-gold));
    transform: translateY(-3px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
    .site-header {
        padding: 28px 0 22px;
    }

    .brand {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .policy {
        padding: 32px 16px 48px;
    }

    .intro-card {
        padding: 26px 22px;
        border-radius: var(--radius-md);
    }

    .page-title {
        font-size: 1.45rem;
    }

    .policy-section {
        padding: 22px 2px;
    }

    .policy-section h3 {
        font-size: 1.15rem;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 16px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .policy-section h3 {
        font-size: 1.08rem;
        padding-left: 10px;
    }
}
