/*
 * Legal document pages (privacidade.html / privacy.html).
 * Reuses the design tokens from styles.css (--bg/--fg/--accent, Montserrat),
 * but unlike the single-page home it is a normal scrollable document, so it
 * overrides body { overflow: hidden } and drops the flame canvas.
 */
body.doc {
    overflow: auto;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.65;
}

.doc__wrap {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.doc__head {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.doc__home {
    display: inline-block;
    line-height: 0;
}

.doc__home img {
    width: 4.5rem;
    height: auto;
    filter: drop-shadow(0 0 1.5rem rgba(0, 0, 0, 0.55));
}

.doc__title {
    margin: 1rem 0 0.25rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.doc__subtitle {
    margin: 0;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    font-weight: 500;
    color: var(--accent);
}

.doc__updated {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* language switcher (Português / English) */
.doc__lang {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.doc__lang a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 213, 74, 0.4);
}

.doc__lang a:hover,
.doc__lang a:focus-visible {
    border-bottom-color: var(--accent);
    outline: none;
}

.doc__lead {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.doc__body h2 {
    margin: 2.5rem 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.doc__body h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
}

.doc__body p {
    margin: 0 0 1rem;
    color: var(--fg);
}

.doc__body ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.doc__body li {
    margin: 0 0 0.5rem;
}

.doc__body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 213, 74, 0.4);
}

.doc__body a:hover,
.doc__body a:focus-visible {
    border-bottom-color: var(--accent);
    outline: none;
}

.doc__warn {
    color: #ff5a5a;
    font-weight: 700;
}

.doc__foot {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.doc__back {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s ease;
}

.doc__back:hover,
.doc__back:focus-visible {
    color: var(--accent);
    outline: none;
}
