/* Grmnrt Hosting — documentos legales. Paleta copiada de billing.grmnrt.xyz (tema Sleek). */
:root {
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --surface-2: #131313;
    --border: #383838;
    --text: #ffffff;
    --muted: #a6a6a6;
    --accent: #d9d9d9;
    --radius: 12px;
    --font: "Nunito", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(13, 13, 13, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}
.brand { color: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; opacity: .85; }
.btn {
    display: inline-block;
    background: var(--accent);
    color: #0d0d0d;
    font-weight: 700;
    font-size: .9rem;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; background: #ffffff; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 28px; border-bottom: 1px solid var(--border); }
.hero h1 { margin: 0 0 10px; font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); }
.updated {
    display: inline-block;
    margin-top: 14px;
    font-size: .82rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
}

/* ---------- Nav de documentos ---------- */
.docnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.docnav a {
    font-size: .9rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
}
.docnav a:hover { color: var(--text); text-decoration: none; }
.docnav a[aria-current="page"] { background: var(--surface); color: var(--text); border-color: #4d4d4d; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0 64px; align-items: start; }

.toc { position: sticky; top: 88px; font-size: .88rem; }
.toc strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 6px; }
.toc a { color: var(--muted); display: block; padding: 3px 0 3px 26px; position: relative; }
.toc a::before { content: counter(toc); position: absolute; left: 0; color: #666; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); text-decoration: none; }

main section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 16px;
}
main h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
main h2 .num { color: var(--muted); font-weight: 700; margin-right: 8px; }
main h3 { margin: 20px 0 8px; font-size: 1rem; font-weight: 700; }
main p { margin: 0 0 12px; color: #e6e6e6; }
main p:last-child, main ul:last-child { margin-bottom: 0; }
main ul { margin: 0 0 12px; padding-left: 20px; color: #e6e6e6; }
main li { margin-bottom: 6px; }
main li::marker { color: var(--muted); }
main strong { color: #fff; }
code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: .88em;
}

.callout {
    border-left: 3px solid var(--accent);
    background: var(--surface-2);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--muted);
    font-size: .92rem;
}
.callout p { color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 28px 0 48px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
    .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
    .hero { padding-top: 36px; }
    .hero h1 { font-size: 1.8rem; }
    main section { padding: 20px; }
}
