:root {
  color-scheme: light;
  --ink: #10201d;
  --ink-soft: #52605c;
  --paper: #f3f0e8;
  --paper-deep: #e9e5da;
  --stone: #d8d3c7;
  --forest: #073b34;
  --forest-deep: #052b27;
  --teal: #177564;
  --teal-soft: #8abbb0;
  --line: rgba(16, 32, 29, 0.15);
  --line-light: rgba(243, 240, 232, 0.2);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1240px, calc(100% - 64px));
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 18px 32px;
  gap: clamp(24px, 4vw, 64px);
  border-bottom: 1px solid transparent;
}

.home .site-header {
  position: sticky;
  top: 0;
  border-bottom-color: var(--line);
  background: rgba(243, 240, 232, 0.97);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}

.brand img,
.footer__identity img {
  width: 96px;
  height: auto;
  mix-blend-mode: multiply;
}

.brand__product {
  padding-left: 17px;
  border-left: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 2.6vw, 40px);
}

.primary-nav a,
.text-link,
.footer__links a {
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.text-link:hover,
.footer__links a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border: 1px solid var(--forest);
  border-radius: 2px;
  background: var(--forest);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover { border-color: var(--teal); background: var(--teal); }
.button--large { min-height: 52px; padding-inline: 26px; }
.button--light { border-color: var(--paper); background: var(--paper); color: var(--forest); }
.button--light:hover { border-color: #fff; background: #fff; color: var(--forest); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.arrow-link span { color: var(--teal); font-size: 1.15em; transition: transform 180ms ease; }
.arrow-link:hover span { transform: translateX(4px); }
.arrow-link--light { color: var(--paper); }

main { width: 100%; }

.info-page { background: #fcfbf8; }
.info-page__inner { width: min(1000px, calc(100% - 64px)); margin: 0 auto; padding: clamp(56px, 8vw, 100px) 0 104px; }
.info-page__eyebrow { margin: 0 0 16px; color: var(--forest); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.info-page h1 { max-width: 18ch; margin: 0 0 24px; font-family: var(--sans); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 450; line-height: 1.12; letter-spacing: -0.04em; }
.info-page__lead { max-width: 65ch; margin: 0; color: var(--ink-soft); font-size: 1.14rem; line-height: 1.7; }
.info-page h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 1.45rem; font-weight: 550; letter-spacing: -0.02em; }
.info-page__details { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.info-page__details p { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.8; }
.info-page__details a, .info-page__email a { color: var(--forest); text-underline-offset: 4px; }
.info-page__email { margin: 32px 0 0; font-size: clamp(1.5rem, 3vw, 2rem); }

/* Footer */
.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; min-height: 126px; padding: 24px 32px; gap: 32px; }
.footer__identity { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__identity small { color: var(--ink-soft); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; gap: clamp(20px, 2.4vw, 34px); list-style: none; }

/* Legal and trust pages */
.legal-shell { width: min(1120px, calc(100% - 48px)); margin: 32px auto 72px; border-top: 1px solid var(--line); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(48px, 8vw, 112px); padding-top: clamp(54px, 8vw, 94px); }
.legal-nav { position: sticky; top: 32px; align-self: start; }
.legal-nav p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }
.legal-nav ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legal-nav a { color: var(--ink-soft); font-size: 0.9rem; text-decoration: none; }
.legal-nav a[aria-current="page"], .legal-nav a:hover { color: var(--ink); }
.legal-document h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.legal-document .meta { margin: 18px 0 58px; color: var(--ink-soft); font-size: 0.82rem; }
.legal-document h2 { margin: 46px 0 10px; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.legal-document p, .legal-document li { color: #33413d; }
.legal-document p { margin: 0 0 18px; }
.legal-document table { width: 100%; margin: 20px 0 32px; border-collapse: collapse; font-size: 0.86rem; }
.legal-document th, .legal-document td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-document th { color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.document-version { margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.76rem; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
}
@media (max-width: 820px) {
  .site-header { min-height: 82px; padding: 14px 20px; }
  .legal-grid { grid-template-columns: 1fr; gap: 44px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 560px) {
  .info-page__inner { width: calc(100% - 32px); padding: 48px 0 72px; }
  .info-page__details { margin-top: 48px; }
  .site-header { min-height: 76px; padding: 12px 16px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 76px; }
  .brand__product { padding-left: 10px; font-size: 0.57rem; letter-spacing: 0.12em; }
  .header-actions .text-link { display: none; }
  .footer__links li:has(a[href="https://app.linx.pm/login"]) { display: none; }
  .button--compact { min-height: 40px; padding-inline: 13px; font-size: 0.69rem; }
  .site-footer { grid-template-columns: 1fr; align-items: start; padding: 28px 16px; }
  .footer__links { justify-content: flex-start; gap: 14px 22px; }
  .legal-shell { width: min(100% - 32px, 1120px); margin-top: 12px; }
  .legal-grid { padding-top: 42px; }
  .legal-document .meta { margin-bottom: 42px; }
  .legal-document table, .legal-document tbody, .legal-document tr, .legal-document th, .legal-document td { display: block; }
  .legal-document thead { display: none; }
  .legal-document tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .legal-document td { padding: 3px 0; border: 0; }
  .legal-document td::before { display: block; margin-top: 8px; color: var(--ink-soft); content: attr(data-label); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
