/* =============================================================
 * Páginas públicas de D-Mino (/download, /privacy, /terms)
 * Paleta del juego: morado profundo + dorado + crema/madera,
 * la misma de RankingTheme.uss y SettingsTheme.uss en Unity.
 * Autocontenido: no depende del tema del landing.
 * ============================================================= */

:root {
    --gold: #d4af37;
    --gold-bright: #ffd700;
    --gold-dark: #a67c00;

    --purple-deep: #1c0b38;
    --purple: #2c124c;
    --purple-mid: #4a1f75;
    --purple-light: #6c359e;

    --cream: #f7f0e1;
    --cream-soft: #fcf8ee;
    --wood: #8b5e34;

    --ink: #241a12;
    --text: #ece7f5;
    --text-muted: #b6adc9;

    --win: #1c9c62;
    --loss: #c0392b;

    --radius: 16px;
    --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 50% -200px, rgba(108, 53, 158, .45), transparent 70%),
        var(--purple-deep);
    color: var(--text);
    font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(28, 11, 56, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, .28);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Unbounded", "Poppins", sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--gold-bright);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }

/* Ficha de dominó dibujada en CSS: no depende de ningún archivo de imagen */
.brand__tile {
    width: 26px; height: 40px;
    border-radius: 6px;
    background: var(--cream);
    border: 2px solid var(--gold);
    position: relative;
    flex: none;
}
.brand__tile::before {
    content: "";
    position: absolute; left: 3px; right: 3px; top: 50%;
    height: 2px; background: var(--wood); transform: translateY(-1px);
}
.brand__tile::after {
    content: "";
    position: absolute; left: 50%; top: 25%;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--purple-mid);
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 0 var(--purple-mid);
}

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.site-nav a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none;
}
.site-nav a:hover { color: var(--cream); background: rgba(108, 53, 158, .45); text-decoration: none; }
.site-nav a.is-active { color: var(--purple-deep); background: var(--gold); }

/* ===== Hero ===== */
.hero { padding: 64px 0 28px; text-align: center; }
.hero h1 {
    font-family: "Unbounded", "Poppins", sans-serif;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--gold-bright);
}
.hero p { max-width: 720px; margin: 0 auto; color: var(--text-muted); font-size: 19px; }

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(212, 175, 55, .5);
    border-radius: 999px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 17px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--gold { background: var(--gold); color: var(--purple-deep); border-color: var(--gold-bright); }
.btn--gold:hover { background: var(--gold-bright); }
.btn--ghost { background: transparent; color: var(--gold-bright); border-color: rgba(212, 175, 55, .55); }
.btn--ghost:hover { background: rgba(212, 175, 55, .14); }
.btn--disabled { background: rgba(255, 255, 255, .06); color: var(--text-muted); border-color: rgba(255, 255, 255, .12); cursor: default; }
.btn--disabled:hover { transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ===== Tarjetas ===== */
.card {
    background: rgba(44, 18, 76, .72);
    border: 1px solid rgba(212, 175, 55, .28);
    border-radius: var(--radius);
    padding: 26px;
}

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card h3 { margin: 0 0 10px; color: var(--gold); font-size: 20px; }
.card p { margin: 0; color: var(--text-muted); font-size: 16px; }
.card__icon { font-size: 30px; line-height: 1; margin-bottom: 10px; display: block; }

section { padding: 44px 0; }
section > .wrap > h2 {
    font-family: "Unbounded", "Poppins", sans-serif;
    font-size: clamp(24px, 3.4vw, 34px);
    color: var(--cream);
    margin: 0 0 8px;
}
section > .wrap > .section-sub { color: var(--text-muted); margin: 0 0 26px; }

/* ===== Documentos legales ===== */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: 34px; padding: 40px 0 80px; }

.toc {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    background: rgba(44, 18, 76, .6);
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: var(--radius);
    padding: 18px;
}
.toc h4 {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-muted); font-size: 15px; }
.toc a:hover { color: var(--gold-bright); }

.doc {
    background: var(--cream-soft);
    color: var(--ink);
    border-radius: var(--radius);
    border: 1px solid rgba(139, 94, 52, .3);
    padding: 40px 46px;
}
.doc h2 {
    font-family: "Unbounded", "Poppins", sans-serif;
    font-size: 25px;
    margin: 42px 0 12px;
    color: var(--purple-mid);
    scroll-margin-top: 96px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; color: var(--wood); }
.doc p, .doc li { color: #3a2c1e; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #6c359e; font-weight: 600; }

.doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(139, 94, 52, .25);
    font-size: 15px;
    color: #6b5b47;
}

.doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}
.doc th, .doc td {
    border: 1px solid rgba(139, 94, 52, .28);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.doc th { background: rgba(139, 94, 52, .12); color: var(--wood); }

.callout {
    border-left: 4px solid var(--gold-dark);
    background: rgba(212, 175, 55, .14);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 16px;
}
.callout--warn { border-left-color: var(--loss); background: rgba(192, 57, 43, .1); }
.callout strong { color: var(--wood); }

/* Marcador visible de los datos que faltan por confirmar */
.todo {
    background: #ffe9a8;
    color: #6b4b00;
    border: 1px dashed #b08900;
    border-radius: 6px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid rgba(212, 175, 55, .25);
    background: rgba(0, 0, 0, .32);
    padding: 40px 0 32px;
    margin-top: 40px;
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}
.site-footer a { color: var(--text-muted); font-size: 15px; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal { color: var(--text-muted); font-size: 14px; max-width: 520px; }

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--loss);
    color: #ff9a90;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .legal { grid-template-columns: 1fr; }
    .toc { position: static; max-height: none; }
    .doc { padding: 28px 22px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .site-header .wrap { min-height: 64px; }
    .brand { font-size: 18px; }
    .site-nav a { padding: 7px 10px; font-size: 14px; }
    .btn { width: 100%; justify-content: center; }
}

@media print {
    body { background: #fff; color: #000; }
    .site-header, .site-footer, .toc, .btn-row { display: none; }
    .legal { grid-template-columns: 1fr; padding: 0; }
    .doc { border: 0; padding: 0; background: #fff; }
}
