/* ═══════════════════════════════════════════════════════════════
   legal.css  –  Bingo Surf
   Shared stylesheet for: about, contact, cookie-policy,
   disclaimer, sitemap, privacy, terms
═══════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/orbitron-v35-latin-700.woff2') format('woff2');
}

/* ── VARIABLES ── */
:root {
    --accent:      #00C9FF;
    --accent2:     #92FE9D;
    --bg:          #0f1623;
    --surface:     #1a202c;
    --surface2:    #242d3d;
    --border:      #2d3748;
    --text:        #e2e8f0;
    --text-muted:  #718096;
    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 4px 24px rgba(0,0,0,0.4);
}

/* ── BASE ── */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

body.legal-page-body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    min-height: 100vh;
}

/* ── SKIP LINK ── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.sr-only:focus {
    position: static;
    width: auto; height: auto;
    padding: 8px 16px; margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    z-index: 9999;
    border-radius: 4px;
    display: block;
    text-align: center;
}

/* ── TOP PROMO BAR ── */
.top-promo-bar {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #101c30, #1a2744, #101c30);
    text-align: center;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,201,255,0.3);
    position: relative;
    z-index: 10;
}
.top-promo-bar a {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s;
    flex-wrap: wrap;
}
.top-promo-bar a:hover { color: var(--accent); }
.top-promo-bar i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* ── NAVIGATION ── */
.top-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo i { color: var(--accent); flex-shrink: 0; }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: #fff; }
.nav-pro-btn {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
    border: 1px solid #f59e0b;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-pro-btn:hover {
    background: #f59e0b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245,158,11,0.3);
}

/* ── MAIN ── */
main {
    padding: 60px 20px 80px;
    min-height: calc(100vh - 320px);
}

/* ── LEGAL CONTAINER ── */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 56px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
/* Wide variant for pages with grid content (sitemap) */
.legal-container--wide {
    max-width: 1000px;
}
.legal-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0,201,255,0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* ── LEGAL HEADER ── */
.legal-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,201,255,0.1);
    border: 1px solid rgba(0,201,255,0.25);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 12px;
    line-height: 1.15;
    position: relative;
}
.last-updated {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.last-updated i    { color: var(--accent); font-size: 0.85rem; }
.last-updated time { font-weight: 600; color: #a0aec0; }

/* ── BODY CONTENT ── */
.legal-container > p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 20px;
    position: relative;
}

h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: rgba(0,201,255,0.1);
    border: 1px solid rgba(0,201,255,0.25);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    flex-shrink: 0;
    padding: 0 6px;
}

p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 16px;
    position: relative;
}

ul {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
    padding-left: 0;
    margin: 0 0 20px;
    list-style: none;
}
ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

strong { color: #fff; font-weight: 700; }

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}
a:hover { color: #fff; text-decoration: underline; }

/* ── CONTACT BLOCK ── */
address.legal-contact {
    font-style: normal;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
address.legal-contact p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}
address.legal-contact i {
    color: var(--accent);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* ── COOKIE TABLE ── */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 0 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 560px;
}
.cookie-table thead { background: var(--surface2); }
.cookie-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.cookie-table td {
    padding: 12px 14px;
    color: #cbd5e1;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table tbody tr:hover { background: rgba(0,201,255,0.03); }
.cookie-table code {
    font-family: 'Courier New', monospace;
    font-size: 0.83rem;
    background: rgba(0,201,255,0.08);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   SITEMAP STYLES
═══════════════════════════════════════════════════════════════ */
.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
}

.sitemap-section {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.18s;
}
.sitemap-section:hover { border-color: rgba(0,201,255,0.35); }

.sitemap-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,201,255,0.04);
}
.sitemap-section-header i {
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Override h2 styles specifically inside sitemap sections */
.sitemap-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.sitemap-links {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.sitemap-links li {
    padding-left: 0;
    margin-bottom: 0;
}
.sitemap-links li::before { display: none; }

.sitemap-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-weight: 400;
}
.sitemap-links li:last-child .sitemap-link { border-bottom: none; }
.sitemap-link:hover {
    background: rgba(0,201,255,0.06);
    color: #fff;
    text-decoration: none;
}

.sitemap-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0,201,255,0.08);
    border: 1px solid rgba(0,201,255,0.15);
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.sitemap-link-icon i {
    color: var(--accent);
    font-size: 0.85rem;
}
.sitemap-link:hover .sitemap-link-icon {
    background: rgba(0,201,255,0.15);
    border-color: rgba(0,201,255,0.4);
}

.sitemap-link-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.sitemap-link-body strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sitemap-link:hover .sitemap-link-body strong { color: var(--accent); }

.sitemap-link-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
    white-space: normal;
}

/* External link indicator */
.sitemap-link--external { position: relative; }
.sitemap-external-icon {
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 4px;
}
.sitemap-link--external:hover .sitemap-external-icon { color: var(--accent); }

/* Current page indicator */
.sitemap-link--current { cursor: default; }
.sitemap-link--current .sitemap-link-body strong {
    color: var(--accent);
}
.sitemap-link--current .sitemap-link-icon {
    background: rgba(0,201,255,0.15);
    border-color: rgba(0,201,255,0.4);
}
.sitemap-link--current:hover {
    background: transparent;
}

/* ── BOTTOM NAV BUTTONS ── */
.legal-nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.back-btn, .alt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.back-btn {
    background: linear-gradient(135deg, var(--accent), #0099cc);
    color: #000;
    box-shadow: 0 4px 15px rgba(0,201,255,0.25);
}
.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,201,255,0.4);
    color: #000;
    text-decoration: none;
}
.alt-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.alt-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 64px 20px 0;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.footer-brand { min-width: 0; }
.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.footer-logo i { color: var(--accent); flex-shrink: 0; }
.footer-tagline {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 280px;
}
.footer-badge {
    height: 46px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: transform 0.2s;
}
.footer-badge:hover { transform: translateY(-2px); }

.footer-col { min-width: 0; }
.footer-col-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col ul li             { padding-left: 0; margin-bottom: 0; }
.footer-col ul li::before     { display: none; }
.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.18s;
}
.footer-col ul li a:hover                    { color: #fff; text-decoration: none; }
.footer-col ul li a[aria-current="page"]     { color: var(--accent); font-weight: 600; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.footer-bottom p        { margin: 0; }
.footer-bottom i        { color: #fc8181; }
.footer-bottom strong   { color: #fff; }

/* ── FOCUS VISIBLE ── */
.back-btn:focus-visible,
.alt-btn:focus-visible,
.nav-pro-btn:focus-visible,
.nav-links a:focus-visible,
.nav-logo:focus-visible,
.footer-logo:focus-visible,
.footer-col ul li a:focus-visible,
.top-promo-bar a:focus-visible,
.sitemap-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   BREAKPOINTS
═══════════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
    .nav-links { display: none !important; }
    main { padding: 40px 16px 60px; }
    .legal-container { padding: 36px 32px; }
    .sitemap-grid { grid-template-columns: 1fr; }
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

/* ── MOBILE PORTRAIT (≤ 600px) ── */
@media (max-width: 600px) {
    main { padding: 24px 12px 48px; }
    .legal-container { padding: 24px 20px; border-radius: 12px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.05rem; }
    .sitemap-link-desc { display: none; }
    .legal-nav-links { flex-direction: column; }
    .back-btn,
    .alt-btn { width: 100%; justify-content: center; }
    .cookie-table-wrapper { border-radius: 6px; }
    .site-footer { padding: 40px 16px 0; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
    .footer-brand { grid-column: auto; }
}

/* ── VERY SMALL PHONES (≤ 380px) ── */
@media (max-width: 380px) {
    .legal-container { padding: 16px 12px; }
    h1 { font-size: 1.3rem; }
    .sitemap-link { padding: 10px 12px; gap: 8px; }
    .sitemap-link-icon { width: 28px; height: 28px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .back-btn:hover,
    .alt-btn:hover,
    .nav-pro-btn:hover,
    .footer-badge:hover { transform: none; }
}