:root {
  color-scheme: dark;
  --bg: #0c0907;
  --panel: rgba(17, 13, 10, 0.72);
  --border: rgba(244, 221, 179, 0.16);
  --text: #f2ead7;
  --muted: rgba(242, 234, 215, 0.74);
  --accent-soft: rgba(240, 190, 99, 0.16);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 221, 166, 0.035), transparent 18%),
    radial-gradient(circle at center, transparent 0 42%, rgba(0, 0, 0, 0.18) 74%, rgba(0, 0, 0, 0.34) 100%),
    url("/trailzone-surface-texture.png") center / 248px 196px repeat fixed,
    linear-gradient(180deg, #140f0b, #080705);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%, rgba(0, 0, 0, 0.2) 100%);
}

.legal-page {
  width: min(1100px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

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

.legal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legal-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.legal-brand-copy {
  display: grid;
  gap: 4px;
}

.eyebrow {
  color: rgba(231, 210, 170, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-brand-copy strong {
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.glass-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 196, 108, 0.28);
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.016) 18%, rgba(4, 4, 4, 0.09) 100%),
    rgba(18, 12, 6, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 216, 0.18),
    inset 0 -10px 16px rgba(0, 0, 0, 0.08),
    0 0 14px rgba(255, 168, 61, 0.08);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.glass-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 205, 120, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 244, 216, 0.2), 0 0 18px rgba(255, 168, 61, 0.12);
}

.legal-hero,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 18%, rgba(0, 0, 0, 0.14) 100%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-hero {
  padding: 30px;
  margin-bottom: 20px;
}

.legal-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
}

.legal-hero p {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 24px;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.24rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.68;
}

.legal-card ul,
.legal-card ol {
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240, 190, 99, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.1)), var(--accent-soft);
}

.legal-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(231, 210, 170, 0.68);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .legal-page {
    width: min(100vw - 24px, 1100px);
    padding: 18px 0 28px;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-brand img {
    width: 60px;
    height: 60px;
  }

  .legal-card,
  .legal-hero {
    padding: 18px;
    border-radius: 22px;
  }
}
