/* =========================================================
   LEGAL / POLICY PAGE TEMPLATE
   Depends on assets/css/style.css being loaded first
   (design tokens, reset, .container, body base styles).
   Reusable for privacy.html, terms.html, and future
   product legal pages under apps.almhdy24.com.
========================================================= */


/* =========================================================
   HEADER
========================================================= */

header {
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(247, 246, 242, 0.94);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Minimal standalone header — app name only, non-clickable */
.site-header-min {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: static;
    backdrop-filter: none;
}
.site-header-min .brand-static {
    display: inline-block;
    font-family: var(--font-arabic-display, inherit);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 2px;
    gap: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 76px 0 46px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

h1 {
    max-width: 720px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.25;
    letter-spacing: -1.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-description {
    max-width: 690px;
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
}

.updated {
    margin-top: 24px;
    color: var(--muted);
    font-size: 15px;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

main {
    padding-bottom: 90px;
}

.policy {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 12px 40px rgba(32, 33, 36, 0.035);
}

.policy-section {
    padding: 0 0 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--border);
}

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

h2 {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 22px;
    margin-left: 10px;
    vertical-align: -3px;
    border-radius: 4px;
    background: var(--accent);
}

p {
    color: var(--text-soft);
    margin-bottom: 14px;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    list-style: none;
    margin: 16px 0 0;
}

li {
    position: relative;
    padding-right: 24px;
    margin-bottom: 9px;
    color: var(--text-soft);
}

li::before {
    content: "";
    position: absolute;
    right: 2px;
    top: 0.85em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

li:last-child {
    margin-bottom: 0;
}

.highlight {
    margin-top: 20px;
    padding: 18px 20px;
    background: var(--surface);
    border-radius: 14px;
    border-right: 3px solid var(--accent);
}

.highlight p {
    font-size: 15px;
    margin: 0;
}

.external-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 2px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    border-bottom: 0;
}

.external-link:hover,
.external-link:focus-visible {
    color: var(--accent-dark);
}


/* =========================================================
   FOOTER (legal-page variant)
========================================================= */

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyright {
    color: var(--muted);
    font-size: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 15px;
    color: var(--muted);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {
    header {
        padding: 19px 0;
    }

    .brand {
        font-size: 16px;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }

    .back-link {
        font-size: 13px;
    }

    .hero {
        padding: 54px 0 32px;
    }

    h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.9;
    }

    .policy {
        padding: 27px 21px;
        border-radius: 15px;
    }

    h2 {
        font-size: 20px;
    }

    p,
    li {
        font-size: 16px;
        line-height: 1.9;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 16px;
    }
}
