@font-face {
  font-family: "DancingScriptLocal";
  src: url("/assets/DancingScript-wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #15110c;
  --muted: rgba(21, 17, 12, 0.72);
  --line: rgba(163, 132, 70, 0.44);
  --gold: #a38446;
  --teal: #0d766f;
  --paper: rgba(255, 253, 247, 0.9);
  --paper-soft: rgba(255, 253, 247, 0.76);
  --shadow: 0 24px 70px rgba(98, 72, 30, 0.16);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 253, 247, 0.18), rgba(255, 253, 247, 0.5)),
    url("/assets/website_background.png") center / cover fixed no-repeat;
  overflow-x: hidden;
}

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

.legal-header,
.legal-main,
.legal-footer {
  width: min(1080px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  margin-inline: auto;
}

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

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

.legal-brand img {
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  padding: 5px;
  border: 1px solid rgba(255, 253, 247, 0.78);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.42);
  box-shadow: 0 10px 28px rgba(21, 17, 12, 0.14);
  backdrop-filter: blur(14px) saturate(1.18);
  object-fit: contain;
}

.legal-brand-copy {
  display: grid;
  min-width: 0;
}

.legal-brand-title {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: "Parisienne", "DancingScriptLocal", cursive;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.legal-brand-initial,
.legal-brand-rest {
  display: inline-block;
  line-height: 1.22;
}

.legal-brand-initial {
  font-family: "Alex Brush", cursive;
  font-size: 1.18em;
}

.legal-brand-rest {
  font-family: "Parisienne", "DancingScriptLocal", cursive;
}

.legal-brand-tagline {
  display: block;
  color: var(--ink);
  font-family: "Parisienne", "DancingScriptLocal", cursive;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.08;
  white-space: nowrap;
}

.legal-nav,
.legal-actions,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.legal-nav {
  justify-content: flex-end;
}

.legal-nav a,
.legal-button,
.legal-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 253, 247, 0.78);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.44);
  box-shadow: 0 10px 28px rgba(21, 17, 12, 0.1);
  backdrop-filter: blur(14px) saturate(1.18);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.legal-button.primary {
  border-color: rgba(21, 17, 12, 0.28);
  background: rgba(21, 17, 12, 0.9);
  color: #fffdf7;
}

.legal-button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.62;
  pointer-events: none;
}

.legal-main {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  margin-bottom: 48px;
}

.legal-hero,
.legal-document {
  border: 1px solid rgba(255, 253, 247, 0.78);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.12);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: clamp(22px, 4vw, 36px);
}

.legal-hero-copy {
  min-width: 0;
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.legal-updated {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.legal-actions {
  justify-content: flex-end;
  min-width: min(320px, 100%);
}

.legal-document {
  min-height: 360px;
  width: 100%;
  padding: clamp(22px, 4vw, 42px);
  background: var(--paper);
  color: rgba(21, 17, 12, 0.9);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.72;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-document.loading {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.legal-document.error {
  color: #7d1f1f;
}

.legal-document h2,
.legal-document h3,
.legal-document p,
.legal-document ul {
  max-width: 78ch;
}

.legal-document h2 {
  margin: 2.3em 0 0.7em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.14;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 1.4em 0 0.35em;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.legal-document p {
  margin: 0 0 0.9em;
}

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

.legal-clause {
  padding-left: 0.75rem;
  border-left: 2px solid rgba(163, 132, 70, 0.24);
}

.legal-subclause {
  margin-left: clamp(8px, 2vw, 22px);
  color: rgba(21, 17, 12, 0.82);
}

.legal-end-marker {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.support-document {
  display: grid;
  gap: clamp(22px, 4vw, 34px);
}

.support-section {
  max-width: 78ch;
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.support-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.support-eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.support-steps {
  display: grid;
  gap: 9px;
  max-width: 74ch;
  margin: 0 0 1.1em;
  padding-left: 1.35rem;
}

.support-steps li {
  padding-left: 0.25rem;
}

.legal-document a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.support-response-time {
  margin-top: 1.3em;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(13, 118, 111, 0.22);
  border-radius: 8px;
  background: rgba(13, 118, 111, 0.08);
  color: rgba(21, 17, 12, 0.88);
  font-weight: 800;
}

.legal-footer {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  color: rgba(21, 17, 12, 0.72);
  font-size: 13px;
}

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

.legal-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .legal-main {
    margin-top: 20px;
  }

  .legal-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .legal-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .legal-header,
  .legal-main,
  .legal-footer {
    width: min(100% - 20px, 1080px);
    max-width: calc(100vw - 20px);
  }

  .legal-brand {
    gap: 10px;
  }

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

  .legal-brand-title {
    font-size: clamp(27px, 9vw, 34px);
  }

  .legal-brand-tagline {
    font-size: clamp(15px, 5vw, 19px);
  }

  .legal-nav a,
  .legal-button,
  .legal-footer a {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .legal-hero,
  .legal-document {
    border-radius: 8px;
  }

  .legal-document {
    line-height: 1.62;
  }
}
