/* multipll subpage styles — Careers, Privacy, Terms, Security */

:root {
    --bg-primary: #eef1f6;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #0a0e17;
    --text-primary: #131726;
    --text-secondary: #3a4458;
    --text-muted: #5a667a;
    --accent-blue: #38bdf8;
    --accent-indigo: #60a5fa;
    --accent-purple: #818cf8;
    --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #818cf8 100%);
    --gradient-hero-bg: linear-gradient(180deg, #d6e0f0 0%, #eef1f6 50%, #ffffff 100%);
    --border-color: rgba(15, 23, 42, 0.12);
    --border-color-dark: rgba(15, 23, 42, 0.18);
    --nav-bg: rgba(238, 241, 246, 0.85);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.95);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 10px 32px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"],
.dark-mode-active:not([data-theme="light"]) {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1521;
    --bg-card: #121a28;
    --bg-dark: #060a10;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --gradient-hero-bg: linear-gradient(180deg, #0a0e17 0%, #0f1521 50%, #0a0e17 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-dark: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(10, 14, 23, 0.85);
    --nav-bg-scrolled: rgba(15, 21, 33, 0.95);
    --card-bg: rgba(18, 26, 40, 0.95);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0a0e17;
        --bg-secondary: #0f1521;
        --bg-card: #121a28;
        --bg-dark: #060a10;
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.7);
        --text-muted: rgba(255, 255, 255, 0.5);
        --gradient-hero-bg: linear-gradient(180deg, #0a0e17 0%, #0f1521 50%, #0a0e17 100%);
        --border-color: rgba(255, 255, 255, 0.08);
        --border-color-dark: rgba(255, 255, 255, 0.12);
        --nav-bg: rgba(10, 14, 23, 0.85);
        --nav-bg-scrolled: rgba(15, 21, 33, 0.95);
        --card-bg: rgba(18, 26, 40, 0.95);
    }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav.scrolled { background: var(--nav-bg-scrolled); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
}

.logo-mark {
    width: 32px; height: 32px;
    background: var(--gradient-brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.logo-mark svg { width: 20px; height: 20px; }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color-dark);
    width: 38px; height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Icons: sun shows in dark mode, moon shows in light mode (matches index.html) */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon,
.dark-mode-active:not([data-theme="light"]) .theme-toggle .sun-icon {
    display: block;
}
[data-theme="dark"] .theme-toggle .moon-icon,
.dark-mode-active:not([data-theme="light"]) .theme-toggle .moon-icon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun-icon { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .moon-icon { display: none; }
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* ---------- HERO ---------- */
.page-hero {
    padding: 9rem 2rem 4rem;
    background: var(--gradient-hero-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-hero-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.last-updated {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ---------- CONTENT ---------- */
.content {
    max-width: 880px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 3rem 0 1rem;
    letter-spacing: -0.01em;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

.content ul, .content ol {
    color: var(--text-secondary);
    margin: 0 0 1.25rem 1.5rem;
    line-height: 1.7;
}

.content li { margin-bottom: 0.5rem; }

.content strong { color: var(--text-primary); font-weight: 600; }

.content a:not(.btn) {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content a:not(.btn):hover { border-bottom-color: var(--accent-blue); }

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
}

.content th, .content td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.content th {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--bg-secondary);
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content td strong { color: var(--text-primary); }

/* Notice/callout box */
.notice {
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    margin: 1.5rem 0;
}

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

/* TOC */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.toc h4 {
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.toc li { margin-bottom: 0.4rem; font-size: 0.95rem; }

.toc a {
    color: var(--text-secondary);
    border-bottom: none;
}

.toc a:hover { color: var(--accent-blue); }

/* ---------- CAREERS-SPECIFIC ---------- */
.career-cta {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.career-cta h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.career-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.career-cta .btn {
    margin: 0.25rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.value-card {
    padding: 1.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.value-card h3 {
    margin-top: 0;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.role-card {
    padding: 1.5rem 1.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.role-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.role-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--border-color-dark);
    border-radius: 999px;
}

.role-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.925rem;
    max-width: 280px;
}

.footer-brand .logo-text { color: white; }

.footer-column h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.925rem;
    margin-bottom: 0.625rem;
    transition: color 0.2s ease;
}

.footer-column a:hover { color: white; }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-container { padding: 0 1.25rem; }
    .page-hero { padding: 7rem 1.25rem 3rem; }
    .content { padding: 3rem 1.25rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .role-card-header { flex-direction: column; align-items: flex-start; }
}
