/* ==========================================================
   KOD-OBUR — Shared styles (header, mobile menu, footer,
   design tokens, base reset). Loaded by every page.
   Page-specific styles stay inline in each HTML file.
   ========================================================== */

:root {
    --bg-dark: #05080F;
    --bg-body: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #B4BFD0;
    --text-muted: #6B7280;
    --text-dim: #8A97AA;
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #00F2FF;
    --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'JetBrains Mono', ui-monospace, monospace;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --container: 1280px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.85) 0%, rgba(5, 8, 15, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.logo-container { display: flex; flex-direction: column; align-items: flex-start; margin-top: 0.5rem; }
.logo { display: block; }
.logo-image { height: 28px; width: auto; display: block; }
.tagline {
    font-size: 0.7rem; font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.1em; text-transform: lowercase;
    margin-top: 2px; text-align: center; width: 100%;
}
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem; font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active { font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.language-selector { display: flex; align-items: center; gap: 0.5rem; }
.lang-btn {
    background: none; border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.875rem; font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.25rem;
}
.lang-btn:hover, .lang-btn.active { color: var(--text-primary); }
.lang-divider { color: var(--text-muted); font-size: 0.875rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
}
.social-link:hover { color: var(--text-primary); transform: scale(1.1); }
.social-link svg { width: 18px; height: 18px; }

.mobile-lang-selector { display: none; align-items: center; gap: 0.4rem; margin-right: 0.75rem; }
.mobile-lang-selector .lang-btn { font-size: 0.8rem; padding: 0.2rem; }

.hamburger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 24px; height: 18px;
    background: none; border: none; padding: 0;
    z-index: 1001;
}
.hamburger span {
    display: block; height: 2px; width: 100%;
    background: var(--text-primary);
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.mobile-menu-link {
    font-size: 1.5rem; font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}
.mobile-menu-link:hover, .mobile-menu-link.active { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
    background: #000;
    padding: 4rem 2rem 3rem;
    position: relative;
    z-index: 1;
}
.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo { height: 22px; width: auto; display: block; }
.footer-section-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-contact-item {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.footer-contact-item a { color: var(--text-secondary); transition: color var(--transition-fast); }
.footer-contact-item a:hover { color: var(--text-primary); }

.footer-legal {
    max-width: var(--container);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.footer-legal a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--accent); }
.footer-legal-sep { color: var(--text-muted); opacity: 0.5; }

/* ---------- Shared form status messages ---------- */
.form-status {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    min-height: 0;
    transition: background 0.2s ease, color 0.2s ease;
    display: none;
}
.form-status:not(:empty) { display: block; }
.form-status-success {
    background: rgba(0, 242, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 242, 255, 0.3);
}
.form-status-error {
    background: rgba(255, 90, 90, 0.08);
    color: #ff8b8b;
    border: 1px solid rgba(255, 90, 90, 0.3);
}
.form-status-info {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header { padding: 1rem 1.25rem; }
    .desktop-nav, .header-actions { display: none; }
    .mobile-lang-selector { display: flex; }
    .hamburger { display: flex; }
    .footer { padding: 3rem 1.25rem 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===========================================================
   Legal / long-form text pages (Privacy Policy, Terms of Use)
   Minimal, generous, easy-to-scan typography.
   =========================================================== */
.legal {
    background: var(--bg-body, #000);
    padding: 8rem 2rem 5rem;
    position: relative;
    z-index: 1;
}
.legal-container {
    max-width: 820px;
    margin: 0 auto;
}
.legal h1 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.legal .legal-meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 2.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}
.legal .legal-lede {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.legal h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    scroll-margin-top: 6rem;
}
.legal h2 .num {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 400;
    margin-right: 0.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.legal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.legal ul {
    list-style: none;
    margin: 0.5rem 0 1.25rem;
    padding: 0;
}
.legal ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
}
.legal ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 1rem;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}
.legal address {
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.5rem 0 1rem;
}
.legal address strong {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}
.legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}
.legal a:hover { color: var(--text-primary); }

@media (max-width: 768px) {
    .legal { padding: 6rem 1.25rem 3rem; }
    .legal h1 { font-size: 1.85rem; }
    .legal h2 { font-size: 1.1rem; margin: 2rem 0 0.75rem; }
    .legal p, .legal ul li, .legal address { font-size: 0.9rem; line-height: 1.7; }
}
