/* OGame Utilities — shared legal footer + policy pages (ACS Splitter glass / pill style) */

/* ─── Policy & cookie document pages ─────────────────────────────── */
body.ou-policy-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #0b0e14;
    background-image: radial-gradient(circle at 50% 0%, #1c2333 0%, #0b0e14 70%);
    color: #e6edf3;
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    display: flex;
    flex-direction: column;
}

body.ou-policy-page .background-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 20%);
}

.policy-page-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    padding-bottom: 0;
    box-sizing: border-box;
}

.policy-panel {
    width: min(900px, 100%);
    max-width: 100%;
    margin: 0 auto;
    flex: 1 1 auto;
    padding: 28px 32px;
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #c6d3e8;
    line-height: 1.65;
    box-sizing: border-box;
}

.policy-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 9px 16px;
    border-radius: 999px;
    font-family: var(--font-tech, "Rajdhani", sans-serif);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(230, 237, 243, 0.95);
    background: rgba(0, 210, 255, 0.07);
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.policy-back-link:hover,
.policy-back-link:focus-visible {
    background: rgba(0, 210, 255, 0.14);
    border-color: rgba(0, 210, 255, 0.55);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12), 0 6px 20px rgba(0, 210, 255, 0.15);
    transform: translateY(-1px);
}

.policy-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-header h1 {
    font-family: var(--font-tech, "Rajdhani", sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}

.policy-header .highlight,
.policy-panel .highlight {
    color: #00d2ff;
}

.policy-header p {
    margin: 0;
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.policy-content section {
    margin-bottom: 1.5rem;
}

.policy-content h2 {
    font-family: var(--font-tech, "Rajdhani", sans-serif);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 28px 0 12px;
    padding-left: 14px;
    border-left: 3px solid #00d2ff;
}

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

.policy-content p {
    margin: 0 0 12px;
}

.policy-content ul,
.policy-content ol {
    padding-left: 1.25rem;
    margin: 0 0 12px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content a {
    color: #79c0ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(121, 192, 255, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.policy-content a:hover,
.policy-content a:focus-visible {
    color: #00d2ff;
    border-bottom-color: #00d2ff;
}

.policy-content code {
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: #e6edf3;
}

.policy-inline-note {
    margin-top: 28px;
}

/* Cookiebot embedding */
#CookieDeclaration {
    font-family: var(--font-body, "Inter", sans-serif) !important;
    color: #c6d3e8 !important;
}

.CookieDeclarationTable {
    background: transparent !important;
    color: #c6d3e8 !important;
}

/* ─── Footer legal (hub + tools) — glass card + pills ───────────── */
.footer-legal {
    width: min(1100px, calc(100% - 24px));
    max-width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 20px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 210, 255, 0.22);
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.94) 0%, rgba(12, 15, 22, 0.92) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;
    align-items: center;
    justify-content: center;
}

.footer-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.45);
    flex-shrink: 0;
}

a.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 16px;
    border-radius: 999px;
    font-family: var(--font-tech, "Rajdhani", sans-serif);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(230, 237, 243, 0.95);
    background: rgba(0, 210, 255, 0.07);
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

a.footer-link:hover,
a.footer-link:focus-visible {
    background: rgba(0, 210, 255, 0.14);
    border-color: rgba(0, 210, 255, 0.55);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12), 0 6px 20px rgba(0, 210, 255, 0.15);
    transform: translateY(-1px);
}

.footer-copyright {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-align: center;
    color: #8b949e;
    font-family: var(--font-body, "Inter", sans-serif);
}

/* Policy pages: footer sits in shell */
body.ou-policy-page .footer-legal {
    margin-top: 24px;
}

@media (max-width: 520px) {
    .footer-sep {
        display: none;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 8px;
    }

    .policy-panel {
        padding: 22px 18px;
    }

    .policy-page-shell {
        padding: 12px;
        padding-bottom: 0;
    }
}
