/* ============================================================
   FLYCOST — Legal Pages Shared Stylesheet
   ============================================================ */

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

:root {
    --blue:       #0068C2;
    --sky:        #0ea5e9;
    --font:       'Inter', -apple-system, sans-serif;
    --font-d:     'Space Grotesk', var(--font);
    /* Light */
    --bg:         #eef3fa;
    --bg-card:    rgba(255,255,255,0.88);
    --border:     rgba(0,0,0,0.09);
    --text:       #0d1b2e;
    --text-sec:   rgba(13,27,46,0.60);
    --accent:     #0068C2;
    --accent-bg:  rgba(0,104,194,0.08);
    --nav-bg:     rgba(238,243,250,0.88);
    --nav-border: rgba(0,0,0,0.08);
    --logo-c:     #0068C2;
    --lb-bg:      rgba(0,0,0,0.05);
    --lb-border:  rgba(0,0,0,0.10);
    --lb-c:       rgba(13,27,46,0.55);
    --lb-abg:     rgba(0,104,194,0.10);
    --lb-aborder: rgba(0,104,194,0.30);
    --lb-ac:      #0068C2;
    --dark:       #050e1d;
    --border-d:   rgba(255,255,255,0.08);
    --toggle-bg:  rgba(0,0,0,0.06);
    --toggle-c:   rgba(13,27,46,0.60);
}

html.dark {
    --bg:         #080f1c;
    --bg-card:    rgba(255,255,255,0.05);
    --border:     rgba(255,255,255,0.09);
    --text:       #ddeeff;
    --text-sec:   rgba(221,238,255,0.58);
    --accent:     #1a8fe0;
    --accent-bg:  rgba(26,143,224,0.10);
    --nav-bg:     rgba(5,14,29,0.82);
    --nav-border: rgba(255,255,255,0.08);
    --logo-c:     #fff;
    --lb-bg:      rgba(255,255,255,0.07);
    --lb-border:  rgba(255,255,255,0.12);
    --lb-c:       rgba(232,240,254,0.55);
    --lb-abg:     rgba(0,104,194,0.28);
    --lb-aborder: rgba(0,104,194,0.50);
    --lb-ac:      #0ea5e9;
    --toggle-bg:  rgba(255,255,255,0.08);
    --toggle-c:   rgba(232,240,254,0.70);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg); color: var(--text); min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ---- NAV ---- */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 62px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    gap: 12px; transition: background .3s;
}
.logo {
    font-family: var(--font-d); font-size: 18px; font-weight: 700;
    letter-spacing: 2.5px; color: var(--logo-c); text-decoration: none; flex-shrink: 0;
}
.logo span { color: var(--sky); }
.nav-r { display: flex; align-items: center; gap: 8px; }
.nav-back {
    font-size: 13px; font-weight: 500; color: var(--lb-c);
    text-decoration: none; padding: 7px 12px; border-radius: 8px;
    transition: color .2s, background .2s;
}
.nav-back:hover { color: var(--accent); background: var(--lb-abg); }
.lang-switcher { display: flex; gap: 4px; }
.lang-pill-btn {
    background: var(--lb-bg); border: 1px solid var(--lb-border);
    color: var(--lb-c); font-size: 12px; font-weight: 600;
    padding: 5px 10px; border-radius: 8px; cursor: pointer;
    transition: all .2s; font-family: var(--font); white-space: nowrap;
}
.lang-pill-btn:hover, .lang-pill-btn.active {
    background: var(--lb-abg); border-color: var(--lb-aborder); color: var(--lb-ac);
}
.dark-toggle {
    background: var(--toggle-bg); border: none; border-radius: 8px;
    width: 34px; height: 34px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; color: var(--toggle-c);
    transition: background .2s, color .2s; flex-shrink: 0;
}
.dark-toggle:hover { background: var(--lb-abg); color: var(--lb-ac); }

/* ---- CONTENT ---- */
main { padding: 96px 24px 80px; }
.legal-inner { max-width: 760px; margin: 0 auto; }

.legal-breadcrumb {
    font-size: 13px; color: var(--text-sec); margin-bottom: 28px;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.legal-breadcrumb a { color: var(--accent); text-decoration: none; }
.legal-breadcrumb a:hover { text-decoration: underline; }

.legal-inner h1 {
    font-family: var(--font-d); font-size: clamp(22px, 4vw, 36px);
    font-weight: 700; letter-spacing: -.5px; color: var(--text); margin-bottom: 6px;
}
.last-updated { font-size: 13px; color: var(--text-sec); margin-bottom: 40px; }

.legal-section { margin-bottom: 32px; }
.legal-section h2 {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal-section h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 16px 0 6px; }
.legal-section p,
.legal-section > div { font-size: 14px; line-height: 1.72; color: var(--text-sec); margin-bottom: 10px; }
.legal-section ul, .legal-section ol { margin: 6px 0 10px 20px; }
.legal-section li { font-size: 14px; line-height: 1.65; color: var(--text-sec); margin-bottom: 4px; }
.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }
.legal-section strong { color: var(--text); font-weight: 600; }

.contact-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px 22px; margin: 12px 0;
    font-size: 14px; line-height: 1.75; color: var(--text-sec);
}
.contact-box strong { color: var(--text); }
.ph { /* placeholder style */
    background: var(--accent-bg); color: var(--accent);
    border-radius: 4px; padding: 1px 6px; font-style: italic; font-size: 13px;
}
.highlight-box {
    background: var(--accent-bg); border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 12px 0;
    font-size: 14px; line-height: 1.65; color: var(--text-sec);
}

/* ---- FOOTER ---- */
footer {
    background: var(--dark); border-top: 1px solid var(--border-d);
    padding: 20px 48px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
footer .logo { font-size: 15px; }
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-legal a:hover, .footer-legal a.current { color: var(--sky); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.30); }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    nav { padding: 0 16px; height: 56px; }
    .nav-back span { display: none; }
    main { padding: 80px 16px 60px; }
    footer { padding: 20px 16px; flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 380px) {
    .lang-pill-btn { padding: 4px 8px; font-size: 11px; }
}
