@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular-subset.woff2") format("woff2"),
    url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold-subset.woff2") format("woff2"),
    url("assets/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #02060a;
  --surface: #0d141d;
  --surface-soft: #121a24;
  --text: #edf3fc;
  --muted: #a5b3c7;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #2cb7c4;
}

.terms-page,
.privacy-page {
  --bg: #010206;
  --surface: #0b1018;
  --surface-soft: #101826;
  --surface-glass: rgba(16, 20, 28, 0.72);
  --text: #f8fbff;
  --muted: #b9c8dc;
  --accent: #2cb7c4;
  --border: rgba(255, 255, 255, 0.16);
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 20% 15%, rgba(44, 183, 196, 0.16), transparent 42%),
    radial-gradient(circle at 78% 8%, rgba(0, 164, 237, 0.14), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.terms-page .container,
.privacy-page .container {
  max-width: 1200px;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 15, 22, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.legal-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.brand-logo {
  width: min(188px, 42vw);
  height: auto;
  max-width: 100%;
  aspect-ratio: 3709 / 553;
  object-fit: contain;
  display: block;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal-links a:hover {
  color: var(--text);
}

.legal-main {
  padding: 56px 0 80px;
}

.legal-shell {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(13, 20, 29, 0.96), rgba(12, 18, 26, 0.92));
  padding: 30px;
}

.privacy-page .legal-main .container {
  max-width: 720px;
}

.terms-page .legal-main .container {
  max-width: 760px;
}

.privacy-page .legal-shell {
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0;
}

.terms-page .legal-shell {
  border: 0;
  border-radius: 16px;
  background: transparent;
  padding: 0;
}

.privacy-page .legal-title {
  margin: 0 0 10px;
}

.privacy-page .legal-updated {
  margin: 0;
}

.privacy-page .legal-content {
  margin-top: 30px;
  display: grid;
  gap: 24px;
}

.privacy-page .legal-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.privacy-page .legal-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.privacy-page .legal-section p,
.privacy-page .legal-section ul {
  margin: 0;
  color: #d4deeb;
  font-size: 16px;
  line-height: 1.65;
}

.privacy-page .legal-section p + p,
.privacy-page .legal-section p + ul,
.privacy-page .legal-section ul + p {
  margin-top: 12px;
}

.privacy-page .legal-section ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.privacy-page .legal-note {
  margin-top: 10px;
}

.privacy-page .legal-footer-inner {
  justify-content: center;
}

.privacy-page .legal-footer {
  margin-top: 24px;
}

.terms-page .legal-footer-inner {
  justify-content: space-between;
}

.terms-page .legal-footer {
  margin-top: 24px;
}

.terms-page .legal-content {
  margin-top: 30px;
  display: grid;
  gap: 24px;
}

.terms-page .legal-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.terms-page .legal-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.terms-page .legal-section p,
.terms-page .legal-section ul {
  margin: 0;
  color: #d4deeb;
  font-size: 16px;
  line-height: 1.65;
}

.terms-page .legal-section p + p,
.terms-page .legal-section p + ul,
.terms-page .legal-section ul + p {
  margin-top: 12px;
}

.terms-page .legal-section ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.terms-page .legal-updated {
  margin: 0;
}

.terms-page .legal-title {
  margin: 0 0 10px;
}

.legal-kicker {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.legal-title {
  margin: 8px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
}

.legal-content {
  margin-top: 26px;
  display: grid;
  gap: 20px;
}

.legal-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 18px 20px;
}

.legal-section h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.legal-section p {
  margin: 0;
  color: #d1dceb;
}

.legal-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.legal-footer-inner {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 760px) {
  .legal-header-inner,
  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-main {
    padding-top: 34px;
  }

  .legal-shell {
    padding: 20px;
  }
}
