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

@font-face {
  font-family: "Manrope";
  src: url("./fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10292c;
  --ink-soft: #4e696d;
  --muted: #718689;
  --aqua: #18b9ad;
  --aqua-deep: #0b8f87;
  --aqua-pale: #dcf8f3;
  --mint: #effcf8;
  --page: #edf8f5;
  --pearl: #f8fbf9;
  --white: #ffffff;
  --line: rgba(17, 67, 70, 0.12);
  --line-strong: rgba(17, 67, 70, 0.2);
  --shadow: 0 24px 70px rgba(19, 72, 72, 0.12);
  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-ui: "Inter", "Segoe UI", Arial, sans-serif;
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(24, 185, 173, 0.13), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.92), transparent 28rem),
    linear-gradient(180deg, #f7fcfa 0%, var(--page) 100%);
}

a { color: var(--aqua-deep); }
a:hover { color: #066e69; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(24, 185, 173, 0.36);
  outline-offset: 4px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(24, 185, 173, 0.22);
  border-radius: 13px;
  color: var(--aqua-deep);
  background: var(--aqua-pale);
  font-family: var(--font-display);
  font-weight: 850;
}

.brand-context,
.version-pill {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.version-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.version-pill--active {
  color: var(--aqua-deep);
  border-color: rgba(24, 185, 173, 0.24);
  background: var(--aqua-pale);
}

.hero,
.document-card {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  padding: clamp(30px, 6vw, 66px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 185, 173, 0.14), rgba(24, 185, 173, 0));
  content: "";
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--aqua-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(36px, 6.5vw, 64px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 730px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.3vw, 20px);
  line-height: 1.62;
}

.notice {
  max-width: 760px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(24, 185, 173, 0.18);
  border-radius: 16px;
  color: #315b5d;
  background: var(--mint);
  line-height: 1.55;
}

.section-title {
  margin: 44px 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.025em;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.document-link {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(19, 72, 72, 0.06);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.document-link:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 185, 173, 0.34);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(19, 72, 72, 0.1);
}

.document-link__title {
  max-width: 92%;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 740;
  line-height: 1.4;
}

.document-link__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.document-card { padding: clamp(24px, 4.5vw, 52px); }

.document-header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  max-width: 920px;
  font-size: clamp(31px, 5vw, 52px);
  line-height: 1.08;
}

.document-status {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.document-acceptance {
  max-width: 780px;
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--aqua);
  border-radius: 0 14px 14px 0;
  color: #315b5d;
  background: var(--mint);
  line-height: 1.55;
}

/* Exact versions and hashes remain in the integrity manifest, not in the public UI. */
.document-meta,
[data-legal-hash],
[data-legal-verification] {
  display: none !important;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 185, 173, 0.38);
  color: var(--ink);
  background: var(--mint);
}

.button--primary {
  border-color: var(--aqua-deep);
  color: var(--white);
  background: var(--aqua-deep);
}

.button--primary:hover {
  color: var(--white);
  background: #087b75;
}

.legal-text {
  min-height: 360px;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #1d3b3e;
  background: #fbfdfc;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.76;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.load-error {
  padding: 18px;
  border: 1px solid rgba(188, 88, 54, 0.28);
  border-radius: 16px;
  color: #803d28;
  background: #fff4ef;
}

footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 20px), 1120px); padding-top: 14px; }
  .brandbar { align-items: flex-start; flex-wrap: wrap; }
  .brand-context, .version-pill { max-width: 100%; white-space: normal; }
  .document-grid { grid-template-columns: 1fr; }
  .hero, .document-card { border-radius: 23px; }
  .hero { padding: 28px 22px 32px; }
  .document-card { padding: 24px 18px 28px; }
  .document-link { min-height: 118px; }
  .legal-text { padding: 20px 16px; font-size: 15px; line-height: 1.7; }
  .document-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; white-space: normal; text-align: center; }
}

@media print {
  :root { --ink: #111; --muted: #555; --line: #ccc; }
  body { color: #111; background: #fff; }
  .shell { width: 100%; padding: 0; }
  .brandbar, .document-actions, footer { display: none; }
  .document-card { padding: 0; border: 0; background: #fff; box-shadow: none; }
  .legal-text { min-height: 0; padding: 0; border: 0; color: #111; background: #fff; font-size: 12pt; }
}
