:root {
    --bg: #0f0a1e; /* deep purple background */
    --bg-soft: #171031; /* softer section bg */
    --card: #1f1542; /* card background */
    --text: #e8e6f2; /* primary text */
    --muted: #b7b2d6; /* muted text */
    --primary: #7c3aed; /* violet */
    --primary-600: #6d28d9;
    --accent: #a78bfa; /* light violet */
    --ok: #34d399;
    --warn: #f59e0b;
    --danger: #ef4444;
    --focus: #22d3ee;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 600px at 20% -10%, #2e1b74 0%, transparent 60%),
    radial-gradient(1000px 500px at 80% -20%, #3a1a8a 0%, transparent 60%),
    var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:focus-visible {
    outline: 2px dashed var(--focus);
    outline-offset: 2px;
}

/* Top 18+ banner */
.age-banner {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: white;
    padding: .6rem 1rem;
    text-align: center;
    font-weight: 600;
}

.age-banner small {
    display: block;
    font-weight: 500;
    opacity: .95;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(23, 16, 49, .6);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    letter-spacing: .3px;
}

.brand-badge {
    background: var(--primary);
    color: #fff;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: .9rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

nav a {
    color: var(--text);
    opacity: .9;
    padding: .4rem .7rem;
    border-radius: 999px;
}

nav a:hover {
    background: rgba(255, 255, 255, .06);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    align-items: center;
    margin: 1.4rem auto 1.2rem;
}

.hero .panel {
    background: linear-gradient(180deg, rgba(31, 21, 66, .4), rgba(31, 21, 66, .2));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin: .2rem 0 .4rem;
}

.subtitle {
    color: var(--muted);
    margin: .2rem 0 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(124, 58, 237, .22);
    color: #eadeff;
    border: 1px solid rgba(167, 139, 250, .35);
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .85rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

/* Offer card */
.offer {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.offer .logo {
    width: 110px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed22, #a78bfa22);
    display: flex;
    place-items: center;
    padding: 4px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.offer .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer h3 {
    margin: .1rem 0 .35rem;
    font-size: 1.2rem;
}

.meta {
    color: var(--muted);
    font-size: .95rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

.stars {
    letter-spacing: .15ch;
}

.cta {
    display: flex;
    gap: .6rem;
    align-items: center;
}

.btn {
    border: 0;
    cursor: pointer;
    padding: .7rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    transition: .2s ease transform, .2s ease opacity;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-600));
    color: #fff;
}

.btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
}

.btn:active {
    transform: translateY(1px);
}

/* Responsible gaming section */
section {
    margin: 2rem 0;
}

.section-title {
    font-size: 1.3rem;
    margin: .2rem 0 .8rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: 1.1fr .9fr;
}

.card {
    background: var(--bg-soft);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

/* Inline SVG chart */
.chart-wrap {
    padding: .6rem;
    background: linear-gradient(180deg, rgba(124, 58, 237, .09), rgba(124, 58, 237, .02));
    border: 1px solid rgba(124, 58, 237, .25);
    border-radius: 12px;
}

.chart-title {
    margin: .4rem 0 .8rem;
    color: var(--muted);
    font-weight: 600;
}

.legend {
    display: flex;
    gap: .8rem;
    font-size: .9rem;
    color: var(--muted);
    margin-top: .6rem;
    flex-wrap: wrap;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.legend i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    background: #a78bfa;
}

/* Resource list */
.links {
    display: grid;
    gap: .6rem;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
}

.links a:hover {
    background: rgba(255, 255, 255, .07);
}

/* Footers */
footer {
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(23, 16, 49, .6);
    backdrop-filter: blur(8px);
    margin-top: 2rem;
}

.foot {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.foot small {
    color: var(--muted);
}

.age-footer {
    background: linear-gradient(90deg, #7c3aed 0%, #ef4444 100%);
    color: #fff;
    text-align: center;
    padding: .5rem 1rem;
    font-weight: 700;
}

/* Age notice (dismissible) */
.note {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .35);
}

.note strong {
    color: #ffd1d1;
}
.nav-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.logoHelp {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.logoHelp a {
    height: 70px;
    background: #fffc;
    padding: 8px;
    border-radius: 15px;
    border: 2px solid #6d28d9
}
.logoHelp .plus18 {
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    font-weight: 700;
    height: 70px;
    background: #fffc;
    border: #f00 4px solid;
    border-radius: 50px;
    font-size: 24px;
}
.logoHelp a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: url("../img/bg.jpg");
    background-position: center;
    background-size: cover;
    opacity: 0.1;
}

/* === Legal Page Styles — Dark Mode Edition === */
:root {
    --accent: #7c3aed;
    --text: #e4e4e7;
    --muted: #a1a1aa;
    --bg: #0f0f12;
    --bg-secondary: #18181b;
    --border: #2a2a2f;
}

.legal-page {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.legal-container h1,
.legal-container h2,
.legal-container h3 {
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.legal-container h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, var(--accent), #9f67ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.legal-container h2 {
    font-size: 1.4rem;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 0.6rem;
}

.legal-container h3 {
    font-size: 1.1rem;
    color: var(--accent);
}

.legal-container p {
    color: var(--text);
    margin: 0.6rem 0 1.2rem;
}

.legal-container ul, .legal-container ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.legal-container a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: all 0.2s ease;
}

.legal-container a:hover {
    color: white;
    border-color: white;
}

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

.legal-container th,
.legal-container td {
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    text-align: left;
}

.legal-container th {
    background: var(--bg-secondary);
    color: var(--accent);
    font-weight: 600;
}

.legal-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--muted);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* 18+ Banner */
.legal-18plus {
    background: linear-gradient(90deg, #7c3aed, #9f67ff);
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #5a29b9;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1rem;
        overflow-x: auto;
    }
    .legal-container h1 {
        font-size: 1.6rem;
    }
}


/* Responsive */
@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .offer {
        grid-template-columns: 80px 1fr;
    }

    .offer .cta {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}
@media (max-width: 767px) {
    nav {
        display: none;
    }
    .offer {
        grid-template-columns: 1fr;
    }
    .rating {
        flex-wrap: wrap;
    }
}