/* Made by Federico Dionisi */
/* © 2026 – All rights reserved. */
@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/questrial.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --page: #f5f7fa;
  --surface: #ffffff;
  --text: #0b0d12;
  --muted: #586272;
  --line: #d7dde6;
  --accent: #1769e0;
  --hero: #08090d;
  --hero-muted: #aab3c1;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #08090d;
    --surface: #10131a;
    --text: #edf0f5;
    --muted: #9da7b6;
    --line: #2a303b;
    --accent: #75a3ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
}

body,
a {
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

img {
  display: block;
}

.legal-header {
  height: 72px;
  color: #f7f9fc;
  background: var(--hero);
  border-bottom: 1px solid #292f39;
}

.legal-header-inner,
.legal-footer-inner {
  width: min(1060px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
}

.legal-brand img {
  width: 152px;
  height: auto;
}

.legal-brand span {
  padding-left: 14px;
  color: var(--hero-muted);
  border-left: 1px solid #38404b;
  font-size: 0.8rem;
}

.legal-header nav {
  display: flex;
  gap: 22px;
}

.legal-header nav a {
  color: var(--hero-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-header nav a:hover,
.legal-header nav a:focus-visible {
  color: #ffffff;
}

.legal-shell {
  width: min(960px, calc(100% - 32px));
  margin: 42px auto;
  padding: clamp(26px, 5vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  margin: 12px 0 8px;
  font-size: 2.7rem;
}

h2 {
  margin: 34px 0 10px;
  font-size: 1.4rem;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

p,
li,
dd {
  color: var(--muted);
  line-height: 1.65;
}

p {
  margin: 0;
}

p + p {
  margin-top: 14px;
}

ul,
ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

.legal-meta {
  margin-bottom: 30px;
  color: var(--muted);
}

.legal-intro {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.identity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.identity-list div {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.identity-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.identity-list dd {
  margin: 8px 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.contact-options section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-options h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.contact-options a {
  display: inline-block;
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--page);
}

.legal-footer {
  padding: 36px 0;
  color: #cbd2dc;
  background: var(--hero);
  border-top: 1px solid #242933;
}

.legal-footer-inner {
  height: auto;
  align-items: flex-start;
}

.legal-footer p {
  max-width: 560px;
  color: #929cab;
  line-height: 1.5;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-footer a {
  color: #cbd2dc;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .legal-header {
    height: 64px;
  }

  .legal-header-inner,
  .legal-footer-inner {
    width: min(100% - 32px, 1060px);
  }

  .legal-brand img {
    width: 136px;
  }

  .legal-brand span,
  .legal-header nav a:not(:first-child) {
    display: none;
  }

  .legal-shell {
    margin: 20px auto;
    padding: 24px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .identity-list,
  .contact-options {
    grid-template-columns: 1fr;
  }

  .legal-footer-inner {
    flex-direction: column;
  }

  .legal-footer nav {
    justify-content: flex-start;
  }
}
