/* Atami — legal pages and 404 (6 Oct 2026).
   Layout: white page, 1280 px column; on wide screens a sticky contents list on the left and a 66ch text column; on phones one column.
   Tokens follow design system v2: ink on white, Floral White panels, coral only for the brand mark, Fraunces for titles, Outfit for everything else. Light only, like the rest of the site. */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit-latin-wght-normal.woff2) format('woff2') }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-opsz-normal.woff2) format('woff2') }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(fonts/fraunces-latin-opsz-italic.woff2) format('woff2') }

:root {
  --ink: #222222; --muted: #5C574F; --lead: #3D3A35; --paper: #FFFFFF; --floral: #FFFCF5;
  --coral: #FF814C; --line: #D9D4CC; --foot-text: #C9C2B4;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mx: 24px;
  color-scheme: light;
}
@media (min-width: 37.5em) { :root { --mx: 40px } }
@media (min-width: 52.5em) { :root { --mx: 56px } }
@media (min-width: 75em)   { :root { --mx: 80px } }

* { box-sizing: border-box }
html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400 }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px }
a:hover { text-decoration-thickness: 2px }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px }
.wrap { width: min(1280px, 100% - 2 * var(--mx)); margin-inline: auto }
.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 16px; background: var(--ink); color: #FFFFFF; z-index: 10 }
.skip:focus { left: 8px }

/* Header */
.top { padding-block: 12px }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px }
.logo { display: flex; align-items: center; width: 96px; height: 44px; flex: none }
.logo svg { width: 100%; height: 100%; display: block }
.top-right { display: flex; align-items: center; gap: 8px }
.wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap; background: var(--ink); color: #FFFFFF }
.wa:hover { background: #000000; color: #FFFFFF }
.wa svg { flex: none }
.top .wa { width: 44px; height: 44px }
.top .wa .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
@media (min-width: 52.5em) {
  .top { padding-block: 24px }
  .logo { width: 132px }
  .top-right { gap: 24px }
  .top .wa { width: auto; height: 48px; padding: 0 24px 0 20px; font-size: 16px }
  .top .wa .wa-label { position: static; width: auto; height: auto; overflow: visible; clip: auto }
}

/* Language switch: current language SemiBold, the other Light, dimmed slash (same element as on the home page) */
.lang { display: inline-flex; align-items: center; font-size: 14px; letter-spacing: 0.14em; line-height: 1 }
.lang a { min-height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; font-weight: 300 }
.lang a[aria-current] { font-weight: 600 }
.lang span { opacity: .55 }

/* Page title */
.head { padding-block: 40px 40px; border-bottom: 1px solid var(--line) }
.eyebrow { margin: 0 0 16px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted) }
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.75rem, 1.9rem + 3.6vw, 5rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance }
.updated { margin: 24px 0 0; font-size: 14px; color: var(--muted) }
.intro { margin: 24px 0 0; max-width: 40ch; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem); font-weight: 300; line-height: 1.45; color: var(--ink) }
@media (min-width: 52.5em) { .head { padding-block: 72px 64px } }

/* Document: contents list + text */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 96px }
.toc { font-size: 15px; min-width: 0 }
.toc p { margin: 0 0 8px; font-weight: 600 }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-top: 1px solid var(--ink) }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line) }
.toc a { display: flex; gap: 12px; min-height: 44px; align-items: center; padding-block: 6px; text-decoration: none; color: var(--lead) }
.toc a::before { content: counter(toc); min-width: 20px; color: var(--muted); font-variant-numeric: tabular-nums }
.toc a:hover { color: var(--ink) }
.body { min-width: 0; max-width: 66ch }
@media (min-width: 52.5em) {
  .doc { grid-template-columns: 260px minmax(0, 66ch); gap: 64px; padding-block: 64px 160px }
  .toc { position: sticky; top: 32px; align-self: start }
}
@media (min-width: 75em) { .doc { gap: 120px } }

.body section { scroll-margin-top: 24px }
.body section + section { margin-top: 56px }
.body h2 { margin: 0 0 16px; font-family: var(--sans); font-weight: 600; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; text-wrap: balance; display: flex; gap: 12px }
.body h2 .n { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums }
.body h3 { margin: 32px 0 12px; font-size: 1.0625rem; font-weight: 600; line-height: 1.3 }
.body p { margin: 0 0 16px }
.body ul { margin: 0 0 16px; padding-left: 1.2em }
.body li + li { margin-top: 8px }
.body li::marker { color: var(--muted) }
.body strong { font-weight: 600 }
.body .note { color: var(--muted); font-size: 15px }

/* One processing activity: what · why · legal basis · how long */
.facts { margin: 0 0 8px; border-top: 1px solid var(--ink) }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line) }
.facts dt { font-size: 14px; color: var(--muted) }
.facts dd { margin: 0 }
@media (min-width: 37.5em) { .facts div { grid-template-columns: 140px minmax(0, 1fr); gap: 24px } }

/* Contact panel */
.contact { margin-top: 56px; padding: 24px; background: var(--floral); display: grid; gap: 4px }
.contact p { margin: 0 }
.contact .who { font-weight: 600 }

/* Small table (cookie policy) */
.table { overflow-x: auto; margin: 0 0 16px }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line) }
thead th { font-weight: 600; border-bottom: 1px solid var(--ink) }
td code { font-size: 14px; background: var(--floral); padding: 2px 6px }

/* 404 */
.lost { position: relative; padding-block: 56px 120px; min-height: calc(100svh - 68px - 360px) }
.lost h1 span, .lost h1 em { display: block }
.lost h1 em { font-style: italic }
.lost .intro { max-width: 44ch }
.lost .actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 16px; font-weight: 600; text-decoration: none }
.btn:hover { background: #000000; color: #FFFFFF }
.textlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600 }
.lost .mark { position: absolute; right: 0; bottom: 48px; width: 40px; height: 40px }
.lost .mark svg { width: 100%; height: 100%; display: block }
@media (min-width: 52.5em) { .lost { padding-block: 120px 160px } .lost .mark { width: 48px; height: 48px; bottom: 64px } }

/* Footer: one pattern band, then logo + slogan, then legal links · © · EN / PT */
.pattern { height: 64px; background: #FFFFFF url(pattern.svg) repeat-x left center / auto 100% }
footer { background: var(--ink); color: #FFFFFF }
footer .wrap { padding-block: 56px 24px; display: flex; flex-direction: column; gap: 40px }
.foot-brand { display: flex; flex-direction: column; gap: 24px }
.foot-brand svg { display: block; width: 132px; height: auto }
.slogan { margin: 0; font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em }
.slogan i { display: block }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 16px; border-top: 1px solid var(--lead); font-size: 14px; color: var(--foot-text) }
.foot-meta nav[aria-label] { display: flex; flex-wrap: wrap; column-gap: 24px }
.foot-meta a { color: var(--foot-text); min-height: 44px; display: inline-flex; align-items: center }
.foot-meta a:hover, .foot-meta a[aria-current] { color: #FFFFFF }
footer .lang a { min-width: 0; padding: 0 6px }
footer a:focus-visible { outline-color: #FFFFFF }
@media (min-width: 52.5em) { .pattern { height: 96px } footer .wrap { padding-block: 96px 40px; gap: 72px } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
