/* SK Telecom — páginas secundárias (Privacidade, Termos, 404) na linguagem da Home v5.
 * Mesmos tokens da Home: papel claro, grafite, vermelho SK em fios de 1,5–3 px, Archivo.
 * Sem motion e sem JavaScript.
 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f4f2;
  --white: #ffffff;
  --ink: #1f2023;
  --ink-2: #3a3c41;
  --muted: #5d6067;
  --rule: #d5d6d8;
  --graphite: #26272b;
  --on-dark: #f4f4f2;
  --on-dark-muted: #a9abb1;
  --rule-dark: #45474d;
  --red: #d90019;
  --red-hover: #b50015;
  --signal: #ee0a1e;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wide: 112%;
  --gutter: clamp(20px, 5vw, 64px);
  --rail: calc(var(--gutter) * .65);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 16px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.skip:focus { top: 16px; }

/* ---------- Header ---------- */
.top { position: relative; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.top__brand { display: block; width: 104px; }
.top__link { font-size: .9375rem; font-weight: 600; text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; transition: border-color .18s ease; }
.top__link:hover { border-color: var(--red); }
@media (max-width: 1023.98px) { .top__brand { width: 88px; } }

/* ---------- Páginas legais ---------- */
.legal { flex: 1 0 auto; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 120px); }
.legal-shell { position: relative; max-width: 68ch; }
.legal-shell > a:first-child {
  display: inline-block; margin-bottom: clamp(28px, 4vw, 44px);
  font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em;
}
.legal-shell > a:first-child:hover { color: var(--red); }
.legal-shell h1 {
  position: relative; margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 680; font-stretch: var(--wide);
  line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
/* Fio vermelho SK: nasce na margem e para antes do título. */
.legal-shell h1::before {
  content: ""; position: absolute; left: calc(var(--rail) * -1); top: .52em;
  width: max(6px, calc(var(--rail) - 14px)); height: 1.5px; background: var(--signal);
}
.legal-shell h2 {
  margin: clamp(32px, 4vw, 44px) 0 10px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 1.25rem; font-weight: 650; font-stretch: 106%; line-height: 1.3; letter-spacing: -.01em;
}
.legal-shell p { margin: 0 0 14px; color: var(--ink-2); text-wrap: pretty; }
.legal-shell p:first-of-type { font-size: 1.125rem; color: var(--ink); }
.legal-shell p:last-child { margin-top: clamp(32px, 4vw, 44px); font-size: .875rem; color: var(--muted); }
.legal-shell strong { font-weight: 650; color: var(--ink); }
.legal-shell p a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; word-break: break-word; }
.legal-shell p a:hover { color: var(--red); }

/* ---------- 404 ---------- */
.error { flex: 1 0 auto; display: grid; align-content: center; padding-block: clamp(56px, 10vw, 140px); }
.error-shell { position: relative; max-width: 40rem; }
.error-shell > span {
  display: block; margin-bottom: 12px;
  font-size: clamp(4.5rem, 3rem + 7vw, 9rem); font-weight: 700; font-stretch: var(--wide); line-height: .9; letter-spacing: -.04em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.error-shell > span::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; background: var(--red); }
.error-shell h1 { margin: 20px 0 10px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 680; font-stretch: var(--wide); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.error-shell p { margin: 0 0 28px; color: var(--ink-2); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border-radius: var(--radius); background: var(--red); color: var(--white);
  font-size: 1rem; font-weight: 600; font-stretch: 106%; text-decoration: none; transition: background-color .18s ease;
}
.button:hover { background: var(--red-hover); }

/* ---------- Rodapé (mesmo da Home) ---------- */
.foot { padding-top: 56px; background: var(--graphite); color: var(--on-dark); }
.foot__row { display: grid; gap: 24px; padding-bottom: 40px; }
.foot__brand { display: block; width: 116px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.foot__nav a, .foot__legal a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .18s ease; }
.foot__nav a:hover, .foot__legal a:hover { border-color: currentColor; }
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-dark); font-size: .8125rem; color: var(--on-dark-muted);
}
.foot__legal p { margin: 0; }
.foot__legal nav { display: flex; gap: 24px; }
.foot :focus-visible { outline-color: var(--on-dark); }
.nowrap { white-space: nowrap; }
@media (min-width: 768px) { .foot__row { grid-template-columns: auto 1fr; align-items: center; } .foot__nav { justify-content: flex-end; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
