:root {
  --paper: #fffaf6;
  --cream: #f8eee8;
  --ink: #2d1d23;
  --muted: #76636a;
  --berry: #7c294b;
  --berry-dark: #361a26;
  --rose: #f3dce3;
  --line: rgba(83, 43, 57, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--berry);
  text-underline-offset: 3px;
}

.legal-shell {
  width: min(900px, calc(100% - 36px));
  margin-inline: auto;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,250,246,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.legal-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.legal-brand span {
  color: var(--berry);
  font-style: italic;
  font-weight: 500;
}

.back-link {
  font-size: 13px;
  font-weight: 750;
}

.legal-main {
  padding-block: 72px 90px;
}

.legal-article {
  padding: clamp(28px, 5vw, 58px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 24px 65px rgba(67, 35, 46, .08);
}

.legal-kicker {
  margin-bottom: 15px;
  color: var(--berry);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1;
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

h2 {
  margin: 0 0 15px;
  font-size: clamp(25px, 4vw, 33px);
  line-height: 1.12;
}

h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

p,
li {
  color: var(--muted);
}

p {
  margin: 10px 0;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

address {
  color: var(--muted);
  font-style: normal;
}

.legal-note {
  padding: 20px;
  margin-top: 20px;
  background: var(--cream);
  border-left: 4px solid var(--berry);
  border-radius: 4px 16px 16px 4px;
}

.legal-note p:first-child {
  margin-top: 0;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.withdrawal-form {
  padding: 22px;
  background: #faf7f4;
  border: 1px dashed rgba(124,41,75,.28);
  border-radius: 18px;
  white-space: pre-line;
}

.legal-footer {
  padding: 30px 0;
  color: rgba(255,255,255,.62);
  background: var(--berry-dark);
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
}

.legal-footer a {
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.legal-footer a[aria-current="page"] {
  color: white;
  font-weight: 750;
}

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

  .legal-nav {
    min-height: 68px;
  }

  .legal-brand {
    font-size: 18px;
  }

  .back-link {
    font-size: 11px;
  }

  .legal-main {
    padding-block: 28px 50px;
  }

  .legal-article {
    padding: 26px 20px;
    border-radius: 23px;
  }

  .legal-article section {
    padding-top: 25px;
    margin-top: 25px;
  }
}
