:root {
  color-scheme: dark;
  --bg: #0c1220;
  --bg-2: #101a2e;
  --surface: #131e33;
  --surface-2: #172542;
  --ink: #f3f0ea;
  --muted: #9fb0c9;
  --line: #24344f;
  --accent: #f0a94b;
  --accent-dark: #e0913a;
  --accent-light: #1d2b45;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 78% -8%, rgba(240, 169, 75, 0.12), rgba(240, 169, 75, 0) 62%),
    radial-gradient(1000px 560px at -6% 6%, rgba(58, 92, 150, 0.22), rgba(58, 92, 150, 0) 60%);
  background-attachment: fixed;
  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(12, 18, 32, 0.82);
  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-logo {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.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: var(--surface-2);
  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);
  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: #1a1206;
  padding: 0 18px;
  font-weight: 750;
  transition: background 0.2s, transform 0.15s;
}

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

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button.secondary:hover {
  background: var(--surface-2);
}

.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: #f0a94b;
}

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

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

.preview-body {
  padding: 24px;
}

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

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

.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(auto-fit, minmax(250px, 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 12px 30px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s, transform 0.2s;
}

.doc-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.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);
  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: var(--surface);
  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;
  line-height: 1.15;
  margin: 0 0 8px;
}

.legal-document h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 32px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal-document h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 24px 0 8px;
}

.legal-document p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-document strong {
  color: var(--ink);
}

.legal-document ul,
.legal-document ol {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-document li + li {
  margin-top: 6px;
}

.legal-document a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-document a:hover {
  color: var(--accent-dark);
}

.legal-document hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-document th,
.legal-document td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-document th {
  background: var(--accent-light);
  font-weight: 700;
  color: var(--ink);
}

.legal-document td {
  color: var(--muted);
}

.legal-document blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 15px;
}

.legal-document .meta-info {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.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;
}

/* Support page */
.support-page {
  position: relative;
  overflow-x: hidden;
}

.support-page .site-shell {
  position: relative;
  z-index: 1;
}

.support-page::before,
.support-page::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
  opacity: 0.9;
}

.support-page::before {
  top: 7vh;
  left: -13vw;
  background: radial-gradient(circle at center, rgba(240, 169, 75, 0.14), rgba(240, 169, 75, 0) 68%);
}

.support-page::after {
  top: 30vh;
  right: -14vw;
  background: radial-gradient(circle at center, rgba(58, 92, 150, 0.28), rgba(58, 92, 150, 0) 70%);
}

.support-hero {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 44px;
}

.support-card {
  width: min(940px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(19, 30, 51, 0.92);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.support-card-inner {
  padding: clamp(28px, 4vw, 56px);
}

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

.support-title {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.support-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
}

.support-section {
  margin-top: 42px;
}

.support-section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.support-section p,
.support-list {
  color: var(--muted);
  font-size: 17px;
}

.support-section p {
  margin: 16px 0 0;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0a94b, #e0913a);
  color: #1a1206;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(240, 169, 75, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}

.support-email:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(240, 169, 75, 0.3);
}

.support-email-icon {
  font-size: 17px;
  line-height: 1;
}

.support-list {
  margin: 18px 0 0;
  padding-left: 22px;
}

.support-list li + li {
  margin-top: 10px;
}

.support-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

/* Back to main site link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  margin-right: 16px;
  transition: background 0.15s, color 0.15s;
}

.back-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}

@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;
  }

  .support-page::before,
  .support-page::after {
    width: 68vw;
    height: 68vw;
    opacity: 0.65;
  }

  .support-hero {
    width: 100%;
    padding: 32px 0 24px;
  }

  .support-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .support-card-inner {
    padding: 26px 20px 34px;
  }

  .support-subtitle,
  .support-section p,
  .support-list,
  .support-note {
    font-size: 16px;
  }

  .support-section h2 {
    font-size: 24px;
  }

  .support-email {
    width: 100%;
    justify-content: center;
    min-height: 58px;
    font-size: 16px;
    padding: 0 18px;
  }

  .back-link {
    margin-right: 0;
    margin-bottom: 4px;
  }
}
