:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5d6978;
  --line: #dfe4ec;
  --accent: #176b87;
  --accent-dark: #0f4f64;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--line);
  background: #f3f6f9;
  color: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button:hover {
  background: var(--accent-dark);
}

.button.secondary:hover {
  background: #f3f6f9;
}

.document-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9634f;
}

.preview-dot:nth-child(2) {
  background: #e7b84d;
}

.preview-dot:nth-child(3) {
  background: #4eaa69;
}

.preview-body {
  padding: 24px;
}

.preview-line {
  height: 12px;
  margin: 13px 0;
  border-radius: 999px;
  background: #e8edf3;
}

.preview-line.title {
  width: 72%;
  height: 22px;
  background: #c8d6df;
}

.preview-line.short {
  width: 46%;
}

.preview-line.medium {
  width: 64%;
}

.link-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.doc-link {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.04);
}

.doc-link:hover {
  border-color: #b8cad6;
  transform: translateY(-1px);
}

.doc-link h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.doc-link p {
  margin: 0;
  color: var(--muted);
}

.doc-link span {
  margin-top: 22px;
  color: var(--accent-dark);
  font-weight: 750;
}

.doc-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doc-content-wrap {
  flex: 1;
  width: min(980px, calc(100% - 24px));
  margin: 16px auto 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document {
  padding: clamp(24px, 5vw, 56px);
  overflow-wrap: anywhere;
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
  letter-spacing: 0;
}

.legal-document h1 {
  font-size: 30px !important;
  line-height: 1.15;
}

.legal-document h2 {
  font-size: 20px !important;
  line-height: 1.25;
}

.legal-document h3 {
  font-size: 17px !important;
  line-height: 1.3;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 760px) {
  .nav {
    min-height: 84px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0 32px;
    gap: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .doc-content-wrap {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}
