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

@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter_variable.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}

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

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira_sans_bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --canvas: #0b120f;
  --outline: #080b09;
  --surface: #17211d;
  --panel: #202b25;
  --panel-alt: #28342d;
  --inset: #111a16;
  --iron: #48544c;
  --iron-light: #737e75;
  --bronze-dark: #4b3b23;
  --bronze: #826b3f;
  --bronze-light: #b9914d;
  --gold: #e2b45e;
  --ink: #eaf1ea;
  --muted: #acc0b4;
  --content: 800px;
  --title: "Cinzel", Georgia, serif;
  --entity: "Bitter", Georgia, serif;
  --body: "Fira Sans", system-ui, sans-serif;
  --pixel-clip: polygon(
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 2px,
    calc(100% - 4px) 2px,
    calc(100% - 4px) 6px,
    100% 6px,
    100% calc(100% - 6px),
    calc(100% - 4px) calc(100% - 6px),
    calc(100% - 4px) calc(100% - 2px),
    calc(100% - 8px) calc(100% - 2px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 2px),
    4px calc(100% - 2px),
    4px calc(100% - 6px),
    0 calc(100% - 6px),
    0 6px,
    4px 6px,
    4px 2px,
    8px 2px
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(115, 126, 117, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 126, 117, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #fff2d0;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: -70px;
  left: 16px;
  padding: 10px 14px;
  clip-path: var(--pixel-clip);
  background: var(--gold);
  color: var(--outline);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 2px solid var(--outline);
  background: rgba(11, 18, 15, 0.97);
  box-shadow: 0 2px 0 var(--bronze-dark);
}

.header-inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  line-height: 1.18;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 2px solid var(--outline);
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow: 2px 2px 0 var(--bronze-dark);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--title);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language-picker {
  position: relative;
  display: flex;
}

.language-picker::after {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--gold);
  content: "▾";
  font-size: 11px;
  pointer-events: none;
  transform: translateY(-50%);
}

.language-picker select {
  min-width: 68px;
  min-height: 40px;
  padding: 6px 28px 6px 12px;
  appearance: none;
  border: 2px solid var(--outline);
  clip-path: var(--pixel-clip);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--iron);
  color: var(--gold);
  cursor: pointer;
  font: 800 12px var(--body);
}

.language-picker option {
  background: var(--surface);
  color: var(--ink);
}

.legal-page {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 108px) 0 66px;
  border-bottom: 3px solid var(--outline);
}

.hero::before {
  position: absolute;
  top: 36px;
  right: -120px;
  width: 310px;
  height: 310px;
  border: 3px solid var(--outline);
  background: url("app-icon.png") center / cover;
  content: "";
  image-rendering: pixelated;
  opacity: 0.09;
  transform: rotate(4deg);
}

.eyebrow,
.section-number {
  position: relative;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-number::before {
  display: inline-block;
  width: 24px;
  height: 3px;
  margin-right: 10px;
  background: var(--bronze-light);
  box-shadow: 0 2px 0 var(--outline);
  content: "";
  vertical-align: middle;
}

h1,
h2 {
  position: relative;
  margin: 0;
  font-family: var(--title);
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 2px 3px 0 var(--outline);
}

h1 {
  max-width: 720px;
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: -0.03em;
}

.intro {
  position: relative;
  max-width: 670px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.55;
}

.effective-date {
  position: relative;
  margin: 20px 0 0;
  color: #7f9186;
  font-size: 13px;
}

.document-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.document-nav a {
  padding: 9px 13px;
  border: 2px solid var(--outline);
  clip-path: var(--pixel-clip);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--iron);
  color: var(--ink);
  font-family: var(--entity);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.document-nav a:hover {
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px var(--bronze-light);
}

.legal-section,
.contact-section {
  padding: 66px 0;
  border-bottom: 3px solid var(--outline);
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
}

h3 {
  margin: 43px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--outline);
  color: var(--ink);
  font-family: var(--entity);
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

h4 {
  margin: 0 0 8px;
  color: #fff2d0;
  font-family: var(--entity);
  font-size: 16px;
}

p,
ul {
  color: #c3d0c8;
}

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

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--iron);
  background: var(--inset);
  color: var(--ink);
  font-size: 0.86em;
}

.data-grid {
  display: grid;
  margin: 28px 0 42px;
  padding: 2px;
  clip-path: var(--pixel-clip);
  background: var(--outline);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.data-card {
  padding: 22px;
  background: var(--surface);
}

.data-card:nth-child(2n) {
  background: var(--panel);
}

.data-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-section {
  margin: 48px 0;
  padding: 28px;
  border: 0;
  clip-path: var(--pixel-clip);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 2px var(--outline),
    inset 0 0 0 3px var(--bronze-dark),
    0 5px 0 rgba(8, 11, 9, 0.8);
}

.contact-section h2 {
  margin-bottom: 10px;
  font-family: var(--entity);
  font-size: 24px;
  letter-spacing: 0;
}

.contact-section .section-number {
  display: none;
}

.contact-section p {
  color: var(--muted);
}

.contact-link {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--entity);
  font-size: 14px;
  font-weight: 700;
}

.developer-name {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer p {
  margin: 0;
  color: inherit;
}

footer a {
  font-family: var(--entity);
  font-weight: 700;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand strong { max-width: 150px; font-size: 13px; }
  .brand small { display: none; }
  .language-picker select { min-width: 64px; }
  .hero { padding-top: 56px; }
  .hero::before { right: 0; width: 210px; height: 210px; }
  .data-grid { grid-template-columns: 1fr; }
  .legal-section { padding-top: 54px; padding-bottom: 54px; }
  ul { padding-left: 22px; }
  .contact-section { padding: 24px 20px; }
  footer { align-items: center; flex-direction: column; gap: 8px; }
}

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