@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color: #201a17;
  background: #fffdf8;
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  --ink: #201a17;
  --muted: #625a53;
  --saffron: #ffb400;
  --orange: #f36a16;
  --line: rgba(32, 26, 23, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fffdf8; font-size: 17px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #146dff; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }

.legal-origin {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  background: var(--ink);
  color: var(--saffron);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-origin span { color: #fff; }
.legal-header,
.legal-main,
.legal-footer { width: min(calc(100% - 64px), 1100px); margin-inline: auto; }

.legal-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-brand { display: inline-flex; align-items: flex-end; gap: 11px; text-decoration: none; }
.legal-brand img { width: 172px; }
.legal-brand span { padding-bottom: 3px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 800; text-decoration: none; }

.legal-main { padding: 95px 0 120px; }
.eyebrow { margin: 0 0 24px; color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: .13em; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.055em; }
h1 { font-size: clamp(52px, 8vw, 104px); line-height: .9; }
.lead { max-width: 760px; margin: 34px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 23px); line-height: 1.55; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 58px 0 72px; padding: 20px 0; border-block: 1px solid var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

section { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr); gap: 60px; padding: 42px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; line-height: 1.05; }
section p { margin: 0 0 16px; color: #48403a; font-size: 17px; line-height: 1.75; }
section p:last-child { margin-bottom: 0; }

.legal-footer { min-height: 125px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
.legal-footer div { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 14px; letter-spacing: .03em; }
.legal-footer .legal-company { flex-direction: row; align-items: center; gap: 18px; }
.legal-sifo-logo { width: 92px; height: 42px; flex: 0 0 auto; overflow: hidden; }
.legal-sifo-logo img { display: block; width: 92px; height: 92px; transform: translateY(-21px); }
.legal-sifo-logo:hover { opacity: .7; }
.legal-footer a { font-size: 15px; font-weight: 800; text-decoration: none; }
.legal-footer-actions { align-items: flex-end; }
.legal-footer .cookie-settings-button { min-height: 30px; }

@media (max-width: 680px) {
  .legal-origin { justify-content: center; text-align: center; }
  .legal-origin span { display: none; }
  .legal-header, .legal-main, .legal-footer { width: min(calc(100% - 28px), 1100px); }
  .legal-header { min-height: 68px; }
  .legal-brand img { width: 143px; }
  .legal-brand span { font-size: 11px; }
  .legal-main { padding: 66px 0 85px; }
  h1 { font-size: clamp(44px, 14vw, 64px); overflow-wrap: anywhere; }
  .lead { font-size: 17px; }
  .legal-meta { margin: 45px 0 52px; }
  section { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  section h2 { font-size: 26px; }
  .legal-footer { min-height: 115px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .legal-footer-actions { align-items: flex-start; }
}

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