/* Secções da página */

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: var(--space-7); background: var(--hero-bg); overflow: hidden; min-height: 0; display: flex; align-items: center; }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }

.hero__grid { position: relative; z-index: 2; display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero__title { display: flex; flex-direction: column; margin-top: var(--space-5); }
.hero__author { font: 600 var(--fs-xs)/1 var(--font-sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.hero__book { font-weight: 700; font-size: var(--fs-3xl); line-height: .95; background: linear-gradient(120deg, var(--text-strong) 30%, var(--brand) 62%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero__tagline { margin-top: var(--space-4); font: italic 500 var(--fs-xl) var(--font-serif); color: var(--gold); }
.hero__lead { margin-top: var(--space-4); font-size: var(--fs-lg); color: var(--muted); max-width: 54ch; }
.hero__status { margin-top: var(--space-6); }
.hero__date { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--text-strong); }
.hero__date .icon { color: var(--gold); }
.countdown { display: flex; gap: .6rem; margin-top: var(--space-4); }
.countdown div { min-width: 70px; text-align: center; padding: .7rem .5rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.countdown b { display: block; font: 700 2rem/1 var(--font-sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-6); }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 540px; padding-bottom: 64px; perspective: 1600px; }
.stage__glow { position: absolute; width: 74%; aspect-ratio: 1; top: 2%; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 68%); filter: blur(30px); animation: pulse 6s ease-in-out infinite; }

/* Livro em pé sobre uma mesa de madeira */
.stage__float { position: relative; }
.stage__table { --wood-a: #dcbd8d; --wood-b: #b98d58; --wood-edge: #8a6338; --wood-gloss: .38;
  position: absolute; left: 50%; bottom: 0; width: min(480px, 96vw); height: 280px; border-radius: 18px;
  transform: translate(-50%, 50%) perspective(900px) rotateX(74deg);
  background:
    radial-gradient(60% 55% at 32% 28%, rgba(255, 255, 255, var(--wood-gloss)), transparent 70%),
    repeating-linear-gradient(0deg, rgba(60, 35, 10, .07) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(60, 35, 10, .16) 0 2px, transparent 2px 160px),
    linear-gradient(180deg, var(--wood-a), var(--wood-b));
  box-shadow: 0 40px 50px -14px rgba(18, 28, 56, .38); }
.stage__table-edge { position: absolute; left: 0; right: 0; top: 100%; height: 44px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, var(--wood-edge), color-mix(in srgb, var(--wood-edge) 60%, #000)); }
:root[data-theme="dark"] .stage__table { --wood-a: #65452c; --wood-b: #3b281a; --wood-edge: #2c1d12; --wood-gloss: .14; box-shadow: 0 40px 60px -14px rgba(0, 0, 0, .75); }
/* Sombra de contacto e sombra projetada pela luz que vem da esquerda */
.stage__shadow { position: absolute; left: 50%; bottom: -10px; width: 78%; height: 30px; transform: translateX(-38%); background: radial-gradient(ellipse, rgba(20, 10, 0, .62), transparent 70%); filter: blur(9px); }
.stage__shadow::after { content: ""; position: absolute; left: 30%; top: 4px; width: 90%; height: 20px; background: radial-gradient(ellipse, rgba(20, 10, 0, .28), transparent 70%); filter: blur(12px); transform: skewX(-38deg); }

/* Livro 3D */
.book3d { --w: min(300px, 62vw); --h: calc(var(--w) * 1.5); --d: 46px; --rx: 0deg; --ry: 32deg;
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
.book3d__face { position: absolute; }
.book3d__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: var(--shadow-book); }
.book3d__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.28), transparent 18%, transparent 80%, rgba(0,0,0,.18)); pointer-events: none; }
.book3d__top { left: 0; top: calc(var(--d) / -2); width: 100%; height: var(--d); transform: rotateX(90deg); background: linear-gradient(90deg, #efe9d8, #d8d0b9); }
.book3d__back { inset: 0; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); background: var(--blue-deep, #1f3f85); border-radius: 5px 2px 2px 5px; }
.book3d__spine { top: 0; left: calc(var(--d) / -2); width: var(--d); height: 100%; transform: rotateY(-90deg); background: #3a58b0 center / 100% 100% no-repeat; display: grid; place-items: center; overflow: hidden; border-radius: 2px 0 0 2px; }
.book3d__spine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 35%, transparent 70%, rgba(255,255,255,.12)); pointer-events: none; }
.book3d__spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 .75rem var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: #ecd08a; white-space: nowrap; }
.book3d__pages { top: 3px; right: calc(var(--d) / -2); width: var(--d); height: calc(100% - 6px); transform: rotateY(90deg); background: repeating-linear-gradient(0deg, #f5f1e6 0 2px, #e0dac8 2px 3px); }

.cover { display: block; position: relative; }
.cover__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; border-radius: inherit; }
.cover__img--fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 12% 9%;
  background: linear-gradient(165deg, hsl(calc(222 + var(--cover-hue, 0)) 56% 36%), hsl(calc(226 + var(--cover-hue, 0)) 58% 20%));
  color: #f4ecd6; border-radius: inherit; position: relative; overflow: hidden;
}
.cover__img--fallback::before { content: ""; position: absolute; inset: 6%; border: 1px solid rgba(236, 208, 138, .45); border-radius: 4px; }
.cover__author { font: 600 .75rem var(--font-sans); letter-spacing: .28em; text-transform: uppercase; color: #ecd08a; }
.cover__title { font: 600 clamp(1.15rem, 2.6vw, 1.7rem)/1.05 var(--font-serif); text-wrap: balance; }
.cover__rule { width: 34%; height: 1px; background: #ecd08a; }
.cover__pub { font: 500 .72rem var(--font-sans); letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.book3d__front .cover__img { height: 100%; }

.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: var(--r-md); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: var(--fs-xs); color: var(--muted); }
.chip b { display: block; font: 700 1.02rem var(--font-sans); color: var(--text-strong); line-height: 1.1; }
.chip .icon { color: var(--gold); width: 1.4rem; height: 1.4rem; }
.chip--a { left: -10%; right: auto; top: -3%; animation: floaty 6s ease-in-out infinite; }
.chip--b { right: -3%; bottom: 24%; animation: floaty 7s ease-in-out -2s infinite; }
@media (max-width: 960px) { .hero { min-height: 0; } .hero__stage { min-height: 380px; } .chip--a { left: 0; top: -2%; } .chip--b { right: 2%; } }


/* ---------- Resumo ---------- */
.facts { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 960px) { .facts { grid-template-columns: 1.1fr .9fr; } }
.facts__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.fact { background: var(--surface); padding: 1.1rem 1.25rem; }
.fact dt { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact dt .icon { color: var(--gold); }
.fact dd { margin-top: .3rem; font: 600 1.1rem/1.35 var(--font-sans); color: var(--text-strong); }
@media (max-width: 520px) { .facts__list { grid-template-columns: 1fr; } }

/* ---------- Passatempo ---------- */
.section--contest { background: var(--bg-soft); }
.contest { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 980px) { .contest { grid-template-columns: 1fr minmax(380px, 480px); } .contest__panel { position: sticky; top: calc(var(--header-h) + 24px); } }
.steps { display: grid; gap: var(--space-4); margin-top: var(--space-6); counter-reset: step; }
.step { display: flex; gap: var(--space-4); align-items: flex-start; }
.step__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--gold); box-shadow: var(--shadow-sm); }
.step__title { font: 700 1.12rem/1.3 var(--font-sans); letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: var(--fs-sm); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-6); border-top: 1px solid var(--line-strong); }
.timeline li { position: relative; padding-top: 1.2rem; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline b { display: block; margin-top: .25rem; font: 600 1.02rem/1.35 var(--font-sans); color: var(--text-strong); text-transform: none; letter-spacing: 0; }
@media (max-width: 620px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; } }
.rules { margin-top: var(--space-5); padding-left: 1rem; border-left: 2px solid var(--gold); font-size: var(--fs-sm); color: var(--muted); }
.card--form { padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-md); }
.card__head { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.card__head h3 { font-size: 1.4rem; }
.card__head p { font-size: var(--fs-sm); color: var(--muted); }
.card__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--gold-soft); color: var(--gold); }
.card__icon .icon { width: 1.5rem; height: 1.5rem; }
.closed-note { text-align: center; padding: var(--space-6) var(--space-4); }
.closed-note__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); margin-bottom: var(--space-3); }
.closed-note p { color: var(--muted); margin-top: var(--space-2); }

/* ---------- Sobre o livro ---------- */
.about { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 980px) { .about { grid-template-columns: 1fr 1fr; } .about__web { position: sticky; top: calc(var(--header-h) + 24px); } }
.pullquote { position: relative; margin: var(--space-6) 0; padding-left: 1.6rem; border-left: 3px solid var(--gold); }
.pullquote .icon { color: var(--gold); width: 2rem; height: 2rem; margin-bottom: .4rem; }
.pullquote p { font: italic 600 var(--fs-xl)/1.3 var(--font-serif); color: var(--brand); }
.pullquote cite { display: block; margin-top: .6rem; font-size: var(--fs-sm); color: var(--muted); font-style: normal; }
.about .h4 { margin-top: var(--space-6); }
.section__head .h2, .about .h2, .author .h2, .contest__info .h2, .guide .h2, .section--books .h2 { position: relative; padding-bottom: .35em; }
.section .h2::after { content: ""; display: block; width: 72px; height: 4px; margin-top: .3em; border-radius: 2px; background: linear-gradient(90deg, var(--gold-bright), var(--gold)); }
.section--newsletter .h2::after { background: #ecd08a; }
.learn { display: grid; gap: .75rem; margin-top: var(--space-4); }
.learn__item { display: flex; gap: var(--space-3); align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-md); border: 1px solid transparent; transition: .3s var(--ease); }
@media (hover: hover) { .learn__item:hover { background: var(--surface); border-color: var(--line); transform: translateX(4px); } }
.learn__item span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); }
.learn__item p { font-size: var(--fs-sm); padding-top: .35rem; }

/* Teia dos 12 Sublimes */
.web { padding: clamp(.75rem, 2vw, 1.5rem); overflow: hidden; }
.web__svg { width: 100%; height: auto; overflow: visible; }
.web__orbit { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 8; }
.web__core { fill: var(--gold); }
:root[data-theme="dark"] .web__core-text { fill: var(--accent-ink); }
.web__core-text { font: 600 11.5px var(--font-sans); letter-spacing: .12em; fill: #fff; text-anchor: middle; }
.web__node { cursor: pointer; outline: none; }
.web__line { stroke: var(--line-strong); stroke-width: 1.4; transition: stroke .3s, stroke-width .3s; }
.web__dot { fill: var(--brand); transition: fill .3s, r .3s; }
.web__label { font: 600 12px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; fill: var(--text); transition: fill .3s; }
.web__node:hover .web__line, .web__node.is-on .web__line, .web__node:focus-visible .web__line { stroke: var(--gold); stroke-width: 2.4; }
.web__node:hover .web__dot, .web__node.is-on .web__dot, .web__node:focus-visible .web__dot { fill: var(--gold-bright); r: 10; }
.web__node.is-on .web__label { fill: var(--gold); }
.web.is-ready .web__line { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.web__info { min-height: 112px; text-align: center; padding: var(--space-4) var(--space-3) var(--space-2); }
.web__count { font-size: var(--fs-xs); letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.web__name { display: block; margin-top: .2rem; font: 700 2.7rem var(--font-serif); color: var(--text-strong); }
.web__phrase { margin-top: .3rem; color: var(--muted); font-size: var(--fs-sm); }
.web__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: var(--space-3); }
.web__pills button { padding: .5rem .9rem; min-height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; font-size: var(--fs-xs); color: var(--text); transition: .2s; }
.web__pills button:hover { border-color: var(--gold); color: var(--text); }
.web__pills button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--accent-ink); }
:root:not([data-theme="dark"]) .web__pills button[aria-pressed="true"] { color: #fff; }
@media (max-width: 560px) { .web__label, .web__core-text { display: none; } .web__dot { r: 9; } .web__pills button { min-height: 44px; } }

/* ---------- Livros ---------- */
.section--books { background: var(--bg-deep); padding-inline: 0; }
.section--books .section__head--row { margin-bottom: var(--space-6); }
.carousel-ctrl { display: flex; gap: .5rem; }
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-4) max(var(--gutter), calc((100vw - var(--container)) / 2)) var(--space-6); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.carousel__track:focus-visible { outline-offset: -3px; }
.book-card { flex: 0 0 min(260px, 70vw); scroll-snap-align: start; scroll-snap-stop: always; }
.book-card article { height: 100%; display: flex; flex-direction: column; }
.book-card__media { position: relative; border-radius: 2px 5px 5px 2px; transform-style: preserve-3d; transition: transform .4s var(--ease), box-shadow .4s var(--ease); box-shadow: var(--shadow-md); }
.book-card__media .cover { border-radius: 2px 5px 5px 2px; overflow: hidden; }
.book-card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, rgba(255,255,255,.22), transparent 16%, transparent 84%, rgba(0,0,0,.16)); }
.book-card:hover .book-card__media { box-shadow: var(--shadow-lg); }
.book-card__index { position: absolute; z-index: 3; left: -.6rem; top: -.6rem; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--surface); color: var(--text-strong); border: 2px solid var(--gold); font: 700 1rem/1 var(--font-sans); letter-spacing: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .28); font-variant-numeric: lining-nums; }
.book-card__flag { position: absolute; z-index: 2; right: -.5rem; bottom: 1rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow-md); }
.book-card__theme { margin-top: var(--space-4); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.book-card__title { margin-top: .25rem; font-size: 1.25rem; line-height: 1.25; }
.book-card__tag { margin: .4rem 0 var(--space-4); font-size: var(--fs-sm); color: var(--muted); flex: 1; }
.book-card--new .book-card__media { box-shadow: 0 0 0 2px var(--gold), var(--shadow-lg); }

/* ---------- Guia ---------- */
.guide__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-5); }
.guide__panel { display: grid; gap: var(--space-6); padding: clamp(1.25rem, 3vw, 2.5rem); align-items: center; animation: fadeup .5s var(--ease); }
@media (min-width: 720px) { .guide__panel { grid-template-columns: 220px 1fr; } }
.guide__media { width: min(220px, 60%); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: var(--shadow-md); }
.guide__if { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.guide__body .h3 { margin-bottom: var(--space-2); }
.guide__body .btn { margin-top: var(--space-4); }

/* ---------- Autor ---------- */
.section--author { background: var(--bg-soft); overflow: hidden; }
.author { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 860px) { .author { grid-template-columns: .8fr 1.2fr; } }
/* A silhueta substitui o círculo com as iniciais */
.author__figure { position: relative; display: grid; place-items: center; min-height: 340px; }
.author__figure::before { content: ""; position: absolute; width: min(460px, 95%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 68%); }
.author__img { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); position: relative; width: auto; height: auto; max-width: 100%; max-height: 460px; }
:root[data-theme="dark"] .author__img { filter: brightness(1.5) saturate(.9); }
.author__img--opaque { mix-blend-mode: multiply; }
:root[data-theme="dark"] .author__img--opaque { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.author--solo { grid-template-columns: 1fr !important; max-width: 760px; }
.author__copy > p { margin-top: var(--space-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 1.1rem 1.4rem; cursor: pointer; list-style: none; font: 600 1.1rem/1.4 var(--font-sans); color: var(--text-strong); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .35s var(--ease); color: var(--gold); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 1.4rem 1.3rem; color: var(--muted); animation: fadeup .4s var(--ease); }

/* ---------- Newsletter ---------- */
.section--newsletter { padding-block: var(--space-8); background: var(--band-bg); color: var(--band-ink); position: relative; overflow: hidden; }
.newsletter { display: grid; gap: var(--space-6); align-items: center; position: relative; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1.1fr; } }
.newsletter > * { position: relative; }
.newsletter h2, .newsletter .lead { color: var(--band-ink); }
.newsletter .lead { opacity: .85; }
.newsletter__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: rgba(255, 255, 255, .14); margin-bottom: var(--space-4); }
.newsletter .notice { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.newsletter__form { background: var(--surface); color: var(--text); padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: var(--r-md); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-top: var(--space-8); }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__note { margin-top: var(--space-3); color: var(--muted); font-size: var(--fs-sm); max-width: 38ch; }
.site-footer__h { font: 600 var(--fs-xs) var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.site-footer p { font-size: var(--fs-sm); color: var(--muted); }
.site-footer .btn { margin-top: var(--space-3); }
.site-footer__links { display: grid; gap: .5rem; font-size: var(--fs-sm); }
.site-footer__links a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--text); }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__bottom { margin-top: var(--space-7); padding-block: var(--space-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: var(--fs-xs); }
.site-footer__bottom code { font-size: .95em; }

/* ---------- Páginas legais ---------- */
.legal { padding-top: calc(var(--header-h) + var(--space-8)); }
.legal__list { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.legal__list p { margin-top: .3rem; color: var(--muted); }
.page-legal .site-header { position: fixed; }
/* Páginas legais: largura de leitura de 1024 px em desktop */
.page-legal .container, .page-legal .container--narrow { width: min(1024px, 100% - 2 * var(--gutter)); }

@media (max-width: 859px) { .author__figure { min-height: 0; } .author__img { max-height: 300px; } }


@media (max-width: 600px) { .chip { display: none; } }

.facts__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-5); }

/* Regulamento: factos, índice, artigos e cláusulas */
.legal--reg .legal__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.legal--reg .legal__facts dt { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.legal--reg .legal__facts dd { margin-top: .25rem; color: var(--text-strong); font-weight: 600; }
.legal__toc { margin: 0 0 var(--space-7); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--r-md); }
.legal__toc ol { columns: 2 260px; column-gap: var(--space-6); padding-left: 1.4rem; list-style: decimal; }
.legal__toc li { margin: .3rem 0; break-inside: avoid; }
.legal__toc a { color: var(--link, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.legal__article { margin-top: var(--space-7); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.legal__article > h2 { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.legal__clauses { margin-top: var(--space-4); padding-left: 2rem; list-style: decimal; display: grid; gap: .85rem; }
.legal__clauses > li { padding-left: .35rem; line-height: 1.7; color: var(--text); }
.legal__clauses > li::marker { font-weight: 700; color: var(--gold); }
.legal__clauses ul { margin-top: .5rem; padding-left: 1.2rem; list-style: disc; display: grid; gap: .3rem; color: var(--muted); }
.legal__clauses a { color: var(--link, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.legal__table { margin-top: .75rem; overflow-x: auto; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.legal__table th, .legal__table td { padding: .6rem .9rem; border: 1px solid var(--line); text-align: left; }
.legal__table thead th { background: var(--surface); }
.legal__table td { text-align: right; font-variant-numeric: lining-nums; white-space: nowrap; }
.legal__sign { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 600px) { .legal__clauses { padding-left: 1.5rem; } .legal__toc ol { columns: 1; } }

/* Secções sem numeração de cláusulas (política de cookies) */
.legal__clauses--plain { list-style: none; padding-left: 0; }
.legal__clauses--plain > li { padding-left: 0; }
.legal__clauses > li { min-width: 0; }
