@font-face {
  font-family: "Thmanyah Display";
  src: url("https://framerusercontent.com/assets/AAY5hsAWwWmVC7qlScZUGjzCgE8.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Thmanyah Text";
  src: url("https://framerusercontent.com/assets/3WPjrTAizPcMoDaKDtKdNB0Jo50.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Thmanyah Text";
  src: url("https://framerusercontent.com/assets/L62MixAFhJojtLTRD19wOsCnFg.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --ink: #061321;
  --surface: rgba(9, 29, 47, 0.91);
  --surface-light: rgba(18, 49, 75, 0.62);
  --gold: #f7b849;
  --gold-soft: #f5d89f;
  --text: #fffaf1;
  --muted: #a8bac8;
  --line: rgba(139, 183, 214, 0.2);
  --line-gold: rgba(247, 184, 73, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(19, 93, 154, 0.2), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(247, 184, 73, 0.08), transparent 30%),
    var(--ink);
  font-family: "Thmanyah Text", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(114, 161, 197, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 161, 197, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.legal-shell {
  position: relative;
  width: min(100% - 32px, 900px);
  margin-inline: auto;
  padding-block: clamp(18px, 4vw, 48px) max(30px, env(safe-area-inset-bottom));
}

.legal-header,
.legal-card {
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 6, 13, 0.32);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 24px;
  background: var(--surface);
}

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

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.brand strong { display: block; }

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.home-link {
  padding: 10px 14px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--gold-soft);
  text-decoration: none;
}

.legal-card {
  margin-top: 16px;
  padding: clamp(24px, 6vw, 58px);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(18, 49, 75, 0.72), rgba(6, 19, 33, 0.94) 55%),
    var(--surface);
}

.legal-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 700;
}

h1,
h2 {
  font-family: "Thmanyah Display", "Thmanyah Text", Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 1.05;
}

.legal-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.effective-date {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.84rem;
}

.legal-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
}

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

.legal-section p { margin: 0 0 12px; }

.legal-section ul {
  margin: 0;
  padding-right: 22px;
}

.legal-section li + li { margin-top: 8px; }

.legal-section strong { color: var(--text); }

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  background: rgba(247, 184, 73, 0.055);
}

.contact-box p { margin: 0; }

.contact-box a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 999px;
  color: #061321;
  background: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 8px 0;
  color: #718798;
  font-size: 0.82rem;
}

.legal-footer nav {
  display: flex;
  gap: 16px;
}

.legal-footer a { text-underline-offset: 5px; }

@media (max-width: 620px) {
  .legal-shell { width: min(100% - 18px, 900px); }

  .legal-header {
    padding: 14px;
    border-radius: 20px;
  }

  .brand small { display: none; }

  .home-link {
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .legal-card {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .legal-section { margin-top: 28px; }

  .contact-box,
  .legal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-box a { text-align: center; }

  .legal-footer {
    align-items: center;
    text-align: center;
  }
}
