/* Freeza — shared styles for landing and legal pages */

:root {
  --ice-50:  #f4fbff;
  --ice-100: #e6f4fe;
  --ice-200: #cbe9fb;
  --ice-300: #9cd6f6;
  --ice-400: #5cbdee;
  --ice-500: #26a3e3;
  --ice-600: #1580bc;
  --ice-700: #0d6294;
  --ink:     #0f2231;
  --ink-mid: #3d5a70;
  --ink-soft:#67839a;

  --bg: linear-gradient(180deg, #ffffff 0%, var(--ice-50) 45%, var(--ice-100) 100%);
  --surface: #ffffff;
  --surface-alt: rgba(255, 255, 255, 0.72);
  --border: rgba(38, 163, 227, 0.18);
  --shadow: 0 1px 2px rgba(15, 34, 49, 0.04), 0 12px 40px rgba(13, 98, 148, 0.10);
  --text: var(--ink);
  --text-mid: var(--ink-mid);
  --text-soft: var(--ink-soft);
  --accent: var(--ice-600);
  --accent-soft: var(--ice-500);

  --measure: 42rem;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: linear-gradient(180deg, #071018 0%, #0a1826 55%, #0b1e2e 100%);
    --surface: #0f2233;
    --surface-alt: rgba(20, 44, 65, 0.6);
    --border: rgba(92, 189, 238, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.45);
    --text: #dceaf5;
    --text-mid: #a8c3d6;
    --text-soft: #7d9cb3;
    --accent: #6ecbf5;
    --accent-soft: #9cd6f6;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

/* ---------- Landing ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.mark {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
  margin: 0 auto 1.75rem;
}
.mark img { width: 100%; height: 100%; display: block; }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tagline {
  margin: 0.6rem 0 0;
  font-size: clamp(1.1rem, 4.2vw, 1.35rem);
  font-weight: 450;
  color: var(--text-mid);
  letter-spacing: -0.01em;
}

.lede {
  max-width: 32rem;
  margin: 1.6rem auto 0;
  color: var(--text-mid);
  font-size: 1.02rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.1rem;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  backdrop-filter: blur(8px);
  color: var(--text-mid);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-soft) 22%, transparent);
}

.contact {
  margin-top: 2.2rem;
  font-size: 1rem;
  color: var(--text-soft);
}
.contact a { font-weight: 500; }

/* ---------- Legal pages ---------- */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  text-decoration: none;
  color: inherit;
}
.page-head img {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 34, 49, 0.12);
}
.page-head span {
  font-size: 1.3rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.page h1 {
  font-size: clamp(1.9rem, 6vw, 2.35rem);
  margin: 0 0 0.35rem;
}

.page h2 {
  font-size: 1.18rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.page h2:first-of-type { border-top: 0; padding-top: 0; }

.page h3 {
  font-size: 1.02rem;
  font-weight: 620;
  margin: 1.6rem 0 0.4rem;
}

.page p, .page li { color: var(--text-mid); }
.page strong { color: var(--text); font-weight: 600; }

.page ul { padding-left: 1.2rem; }
.page li { margin: 0.3rem 0; }

.meta {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}

.callout {
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.97rem;
}
.callout p { margin: 0.4rem 0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-mid);
}
th { color: var(--text); font-weight: 600; white-space: nowrap; }

/* ---------- Footer ---------- */

footer {
  margin-top: 3rem;
  padding: 1.6rem 1.5rem 2.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.9rem;
}
footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; }
footer .sep { opacity: 0.4; }

.hero footer { margin-top: auto; padding-bottom: 0; }

/* ---------- Language switch ---------- */

.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-alt);
}
.lang button, .lang a {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.6;
}
.lang button[aria-pressed="true"],
.lang a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .lang button[aria-pressed="true"],
  .lang a[aria-current="page"] { color: #06131e; }
}

[data-lang] { display: none; }
[data-lang].is-active { display: revert; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}
