/* ==========================================================================
   Elucida — site
   Paleta derivada do app (roxo #6a0ec5, verde da pena #2c802c, lilás #c6caed)
   ========================================================================== */

:root {
    --purple: #6a0ec5;
    --purple-600: #5a0ba8;
    --purple-800: #2a0b52;
    --purple-900: #1b0638;
    --green: #2c802c;
    --lilac: #c6caed;
    --lilac-50: #f6f5fd;
    --lilac-100: #eceaf9;
    --mauve: #a28497;
    --amber: #ffb347;
    --amber-600: #ff7a2f;

    --bg: #ffffff;
    --bg-soft: var(--lilac-50);
    --surface: #ffffff;
    --text: #3a3544;
    --text-muted: #6b6578;
    --heading: #1f1430;
    --border: #e6e3f3;

    --grad-quill: linear-gradient(120deg, #3a9a3a 0%, #5a5fae 45%, var(--purple) 100%);
    --grad-quill-light: linear-gradient(120deg, #7fd67f 0%, #b6a7ff 55%, #e0c3ff 100%); /* pena sobre fundo escuro */
    --grad-dark: linear-gradient(160deg, var(--purple-900) 0%, var(--purple-800) 55%, #0f0420 100%);

    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-title: "Montserrat", "Inter", system-ui, sans-serif;

    --radius-sm: 0.5rem;
    --radius: 0.875rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 1px 2px rgba(31, 20, 48, .06), 0 2px 8px rgba(106, 14, 197, .06);
    --shadow: 0 10px 30px -10px rgba(42, 11, 82, .25);
    --shadow-lg: 0 30px 60px -20px rgba(15, 4, 32, .55);

    --surface-light: #ffffff; /* superfícies que ficam claras nos dois temas (barra, formulário) */
    --fill-bg: #ffe9c7;
    --fill-text: #7a3b00;
    --note-bg: var(--lilac-50);

    --container: 1180px;
    --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #120a1f;
        --bg-soft: #180e29;
        --surface: #1e1331;
        --text: #d9d4e6;
        --text-muted: #a69fb8;
        --heading: #f4f1fb;
        --border: #2f2345;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
        --fill-bg: #4a2f0c;
        --fill-text: #ffd8a8;
        --note-bg: var(--surface);
    }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--heading);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 700;
}

p { margin: 0 0 1em; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.text-grad {
    background: var(--grad-quill);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.on-dark .text-grad {
    background: var(--grad-quill-light);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ---------- botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.btn-primary {
    color: #fff;
    background-color: var(--purple);
    border-color: var(--purple-600);
    box-shadow: 0 6px 16px -8px rgba(106, 14, 197, .6);
}
.btn-primary:hover {
    background-color: var(--purple-600);
    box-shadow: 0 10px 22px -8px rgba(106, 14, 197, .7);
}

.btn-ghost {
    color: var(--purple);
    background: transparent;
    border-color: rgba(106, 14, 197, .3);
}
.btn-ghost:hover { background: rgba(106, 14, 197, .06); }

.on-dark .btn-ghost {
    color: #fff;
    border-color: rgba(198, 202, 237, .4);
}
.on-dark .btn-ghost:hover { background: rgba(198, 202, 237, .1); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
/* telas estreitas: rótulos longos quebram linha em vez de estourar a largura */
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } }

/* ---------- header ---------- */
.site-header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 12px;
}
.nav {
    max-width: calc(var(--container) + 24px);
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 12px 0 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 6px 24px -12px rgba(15, 4, 32, .35);
    transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled .nav {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 30px -14px rgba(15, 4, 32, .45);
}

.brand img { height: 52px; width: auto; }

.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.75rem;
}
.nav-links a {
    color: #3a3544;
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    text-decoration: none;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-quill);
    transform: scaleX(0);
    transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
/* item da seção visível: pílula com contorno, como o item ativo do menu do app */
.nav-links a.active {
    margin: -.45rem -.9rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--purple) 18%, transparent);
    background: color-mix(in srgb, var(--surface-light) 75%, transparent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--purple) 10%, transparent);
}
.nav-links a.active::after { left: .9rem; right: .9rem; bottom: 2px; transform: scaleX(1); }

.nav-actions { display: none; gap: .5rem; align-items: center; }
.nav-actions .btn-ghost, .mobile-menu .btn-ghost { color: var(--purple); border-color: rgba(106, 14, 197, .3); }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--purple);
    cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
    display: none;
    max-width: calc(var(--container) + 24px);
    margin: 8px auto 0;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.mobile-menu li a {
    display: block;
    padding: .7rem .5rem;
    color: #3a3544;
    font-weight: 500;
    border-bottom: 1px solid #eee9f8;
    text-decoration: none;
}
.mobile-menu .btn { width: 100%; margin-top: .5rem; }

@media (min-width: 960px) {
    .nav-links, .nav-actions { display: flex; }
    .nav-toggle, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    color: #e9e5f5;
    background: var(--purple-900) url("../img/hero-bg.svg") center / cover no-repeat;
    padding: calc(var(--header-h) + 80px) 0 120px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}
@media (min-width: 960px) {
    .hero { padding: calc(var(--header-h) + 110px) 0 150px; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5.5vw, 3.9rem);
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #cfc8e4;
    max-width: 36em;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: 1.5rem; font-size: .9rem; color: #a99fc6; }

/* mock de curso */
.mock {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}
.mock-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(198, 202, 237, .22);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: var(--shadow-lg);
}
.mock-cover {
    height: 150px;
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.mock-cover img { height: 110px; width: auto; }
.mock-title { font-family: var(--font-title); font-weight: 600; color: #fff; font-size: 1.1rem; margin-bottom: .25rem; }
.mock-sub { font-size: .85rem; color: #b9b0d4; margin-bottom: 1rem; }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mock-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
    font-size: .9rem;
    color: #ded8ef;
}
.mock-list .ic {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(198, 202, 237, .15);
}
.mock-list .ic svg { width: 15px; height: 15px; }
.mock-list .now .ic { background: rgba(255, 179, 71, .22); color: var(--amber); }
/* editor: módulo com itens recuados, como a aba Estrutura do app */
.mock-list .mod { font-weight: 600; color: var(--surface-light); background: color-mix(in srgb, var(--lilac) 18%, transparent); }
.mock-list li:not(.mod) { margin-left: 1.1rem; }
.mock-add {
    margin-bottom: .7rem;
    padding: .5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-title);
    font-size: .85rem;
    font-weight: 600;
    color: var(--surface-light);
    background: var(--purple);
}
.mock-list .tag {
    margin-left: auto;
    font-size: .72rem;
    padding: .15rem .5rem;
    border-radius: 99px;
    background: rgba(255, 179, 71, .18);
    color: #ffd8a8;
}

.mock-badge {
    position: absolute;
    right: -14px;
    bottom: -26px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1rem;
    border-radius: var(--radius);
    background: #fff;
    color: #2a2238;
    box-shadow: var(--shadow-lg);
    font-size: .85rem;
    line-height: 1.3;
}
.mock-badge strong { display: block; font-family: var(--font-title); color: var(--purple); }
.mock-badge .medal {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--amber), var(--amber-600));
    color: #fff;
}
.mock-badge .medal svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .mock-badge { right: 8px; } }

/* ---------- seções ---------- */
.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}
.section-head h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: -.01em;
}
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

/* linha em gradiente — eco do .section-band do app */
.rule {
    width: 120px;
    height: 3px;
    margin: 0 auto 1.4rem;
    border-radius: 3px;
    background: var(--grad-quill);
}

/* recursos */
.features {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
    position: relative;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(106, 14, 197, .25);
}
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { color: var(--text-muted); margin: 0; font-size: .98rem; }

.f-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    color: var(--purple);
    background: linear-gradient(135deg, rgba(44, 128, 44, .12), rgba(106, 14, 197, .14));
}
.f-icon svg { width: 26px; height: 26px; }

@media (prefers-color-scheme: dark) {
    a { color: #b89cff; }
    .f-icon { color: #c4adff; background: linear-gradient(135deg, rgba(79, 179, 79, .18), rgba(155, 107, 255, .22)); }
    .btn-ghost { color: #c4adff; border-color: rgba(196, 173, 255, .35); }
    .feature:hover { border-color: rgba(155, 107, 255, .4); }
    .steps::before { background: repeating-linear-gradient(90deg, rgba(155, 107, 255, .45) 0 8px, transparent 8px 16px); }
    .footer-links a:hover { color: #c4adff; }
}

/* como funciona */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2rem;
    counter-reset: step;
    position: relative;
}
@media (min-width: 860px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps::before {
        content: "";
        position: absolute;
        top: 32px;
        left: 16%;
        right: 16%;
        height: 2px;
        background: repeating-linear-gradient(90deg, rgba(106, 14, 197, .35) 0 8px, transparent 8px 16px);
    }
}
.step { text-align: center; position: relative; padding: 0 .5rem; }
.step-num {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    background: var(--grad-quill);
    box-shadow: 0 0 0 8px var(--bg), 0 12px 24px -8px rgba(106, 14, 197, .6);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-muted); max-width: 22em; margin: 0 auto; }

/* integrações / LTI */
.split {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.split .rule { margin-left: 0; }
@media (min-width: 900px) { .split-rev > :first-child { order: 2; } }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks li::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.lti-diagram {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--grad-dark);
    color: #e9e5f5;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.lti-diagram::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 179, 71, .22), transparent 45%);
    pointer-events: none;
}
.lti-diagram svg { position: relative; width: 100%; height: auto; }

/* audiência: mock do painel do app */
.audi-mock {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.audi-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--purple);
    margin-bottom: 1rem;
}
.audi-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    margin-bottom: 1rem;
}
.stat {
    padding: .8rem .6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    text-align: center;
    line-height: 1.25;
}
.stat strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    background: var(--grad-quill);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat span { font-size: .78rem; color: var(--text-muted); }
.audi-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.audi-people li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.audi-people strong { display: block; color: var(--heading); font-size: .92rem; }
.avatar {
    flex: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--surface-light);
    background: var(--grad-quill);
}
.chip {
    display: inline-block;
    margin-left: .35rem;
    padding: .05rem .5rem;
    border-radius: 99px;
    font-style: normal;
    font-size: .7rem;
    font-weight: 600;
    color: var(--green);
    background: color-mix(in srgb, var(--green) 14%, transparent);
    vertical-align: 1px;
}
@media (min-width: 520px) { .audi-stats { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-color-scheme: dark) {
    .audi-title { color: var(--lilac); }
    .stat strong { background-image: var(--grad-quill-light); }
    .chip { color: var(--lilac); background: color-mix(in srgb, var(--green) 35%, transparent); }
}

/* CTA / contato */
.cta {
    position: relative;
    padding: 96px 0;
    color: #e9e5f5;
    background: var(--purple-900) url("../img/hero-bg.svg") center / cover no-repeat;
    overflow: hidden;
}
.cta-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta p { color: #cfc8e4; }

.form {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .95);
    color: #3a3544;
    box-shadow: var(--shadow-lg);
}
.form .field { margin-bottom: 1rem; }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: #4d4560; }
.form input, .form textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: .75rem .9rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd8ea;
    background: #f6f5fb;
    color: #2a2238;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form input:focus, .form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(106, 14, 197, .15);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; }
.form-note { font-size: .8rem; color: #7a7290; margin: .75rem 0 0; text-align: center; }

/* footer */
.site-footer {
    padding: 48px 0 32px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    font-size: .92rem;
    color: var(--text-muted);
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    align-items: center;
    justify-content: space-between;
}
.footer-brand img {
    height: 56px;
    width: auto;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #fff; /* o logo tem texto preto: garante leitura no tema escuro */
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .85rem;
}

/* ---------- página legal (termos.html) ---------- */
.legal-hero { padding: calc(var(--header-h) + 64px) 0 56px; }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .75rem; }
.legal-hero .lead { margin-bottom: 0; }
.legal-meta { margin: 1rem 0 0; font-size: .9rem; color: var(--lilac); }

.legal-layout {
    display: grid;
    gap: 2rem;
    padding-top: 48px;
    padding-bottom: 96px;
}
@media (min-width: 1000px) {
    .legal-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 3.5rem; padding-top: 64px; }
}

/* sumário: recolhível no celular, lateral fixo no desktop */
.legal-toc {
    align-self: start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: .9rem 1.1rem;
    font-size: .92rem;
}
.legal-toc summary {
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--heading);
}
.legal-toc ol { margin: .75rem 0 0; padding-left: 1.4rem; display: grid; gap: .35rem; }
.legal-toc a { color: var(--text-muted); }
.legal-toc a:hover { color: var(--purple); }
@media (min-width: 1000px) {
    .legal-toc {
        position: sticky;
        top: calc(var(--header-h) + 28px);
        max-height: calc(100vh - var(--header-h) - 56px);
        overflow-y: auto;
    }
}

.legal-body { max-width: 48em; min-width: 0; }
.legal-body section { padding-top: 2.25rem; margin-top: 2.25rem; border-top: 1px solid var(--border); }
.legal-body section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.legal-body h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.legal-body ul, .legal-body ol { padding-left: 1.4rem; margin: 0 0 1em; }
.legal-body li { margin-bottom: .35rem; }
.legal-body li > ul { margin-top: .35rem; }
.legal-body dt { font-weight: 600; color: var(--heading); }
.legal-body dd { margin: 0 0 .75rem; }

.legal-note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--note-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--purple);
}
.legal-note p:last-child { margin-bottom: 0; }

.legal-caps { text-transform: uppercase; font-size: .95rem; letter-spacing: .01em; }

/* tabelas rolam sozinhas no celular, sem rolagem horizontal da página */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .93rem; }
.legal-table th, .legal-table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal-table th { font-family: var(--font-title); font-weight: 600; color: var(--heading); background: var(--bg-soft); }
.legal-table tr:last-child td { border-bottom: 0; }

mark.fill {
    padding: .05em .35em;
    border-radius: 4px;
    background: var(--fill-bg);
    color: var(--fill-text);
    font-weight: 600;
    -webkit-box-decoration-break: clone; /* fundo e cantos em cada linha quando quebra */
    box-decoration-break: clone;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .feature { transition: none; }
}
