:root {
  --bg: #f4f1e9;
  --paper: #fffdf7;
  --ink: #121417;
  --muted: #626b73;
  --muted-strong: #3f4850;
  --line: rgba(39, 52, 45, 0.16);
  --felt: #07140d;
  --gold: #d8a948;
  --gold-2: #f7d37a;
  --shadow-soft: 0 18px 54px rgba(17, 21, 17, 0.07);
  --radius-sm: 8px;
  --max: 1160px;
  --legal-max: 1120px;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Merriweather", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.72), rgba(244, 241, 233, 0.96)), var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body.page-home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(3, 10, 6, 0.98), rgba(6, 24, 14, 0.96)),
    url("felt-background.png") center top / 1480px auto fixed,
    var(--felt);
}

body.page-legal {
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(245, 240, 229, 0.98)), var(--bg);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.legal-shell {
  width: min(var(--legal-max), calc(100% - 44px));
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: rgba(12, 18, 14, 0.1);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #55d391, #4e78ff);
}

.lang {
  display: none;
}

.lang.active {
  display: block;
}

.lang-inline.active {
  display: inline;
}

.language {
  min-height: 38px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(10, 56, 31, 0.16);
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn {
  min-width: 40px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #253028;
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.lang-btn.active {
  color: #1f1408;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.lang-btn:focus-visible,
.store-status:focus-visible,
.text-link:focus-visible,
.legal-toc a:focus-visible,
.footer-links a:focus-visible,
.doc-footer a:focus-visible {
  outline: 3px solid rgba(216, 169, 72, 0.48);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(40, 54, 48, 0.12);
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(16px);
}

.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  display: block;
  color: #111711;
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 12px;
  color: #1d2a22;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(16, 79, 46, 0.28);
  background: rgba(10, 56, 31, 0.07);
  outline: 0;
}

.nav-link.active {
  border-color: rgba(216, 169, 72, 0.54);
  background: linear-gradient(180deg, rgba(247, 211, 122, 0.32), rgba(216, 169, 72, 0.16));
  color: #432a08;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.page-home main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-language-wrap {
  position: absolute;
  inset: 22px 0 auto;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.top-language {
  pointer-events: auto;
  border-color: rgba(247, 211, 122, 0.28);
  background: rgba(7, 20, 11, 0.68);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.top-language .lang-btn {
  color: rgba(255, 250, 240, 0.82);
}

.top-language .lang-btn.active {
  color: #1f1408;
}

.hero-band {
  position: relative;
  color: #fffaf0;
  background:
    linear-gradient(90deg, rgba(3, 10, 6, 0.96), rgba(5, 24, 14, 0.9) 54%, rgba(10, 56, 31, 0.76)),
    url("felt-background.png") center / cover;
  isolation: isolate;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 6, 0.42));
  pointer-events: none;
  z-index: -1;
}

.hero-band-short {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  align-items: center;
}

.hero-layout-short {
  width: min(900px, calc(100% - 44px));
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  padding-block: clamp(112px, 14vw, 138px) clamp(54px, 8vw, 92px);
  text-align: center;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(247, 211, 122, 0.42);
  background: rgba(255, 244, 206, 0.08);
  padding: 7px 12px;
  color: #f8df98;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 5px rgba(247, 211, 122, 0.16);
}

.hero-title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-titleline {
  margin: 20px 0 0;
  color: #f7d37a;
  font-family: var(--font-serif);
  font-size: clamp(31px, 4.6vw, 54px);
  line-height: 1.02;
  font-weight: 800;
}

.hero-titleline-wide {
  max-width: 24ch;
  margin-inline: auto;
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 58ch;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(16px, 1.7vw, 20px);
}

.store-row {
  max-width: 560px;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.store-status {
  min-height: 58px;
  min-width: 192px;
  flex: 1 1 192px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  border: 1px solid rgba(247, 211, 122, 0.34);
  background: rgba(255, 250, 240, 0.1);
  color: #fffaf0;
  padding: 10px 13px;
}

.store-status svg {
  width: 23px;
  height: 23px;
  color: var(--gold-2);
  flex: 0 0 auto;
}

.store-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
  text-align: left;
}

.store-mini {
  color: rgba(255, 250, 240, 0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.store-title {
  color: #fffaf0;
  font-size: 16px;
  font-weight: 900;
}

.hero-link-row {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.text-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #ffe7a7;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 231, 167, 0.46);
}

.page-footer {
  color: rgba(255, 250, 240, 0.84);
  background:
    linear-gradient(180deg, rgba(5, 14, 8, 0.98), rgba(3, 10, 6, 1)),
    url("felt-background.png") center / cover;
  padding: 28px 0;
}

.page-home .page-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 24px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-meta {
  display: grid;
  gap: 4px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
}

.footer-small {
  color: rgba(255, 250, 240, 0.62);
  font-size: 13px;
}

.footer-actions,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-actions {
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #ffe7a7;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(255, 231, 167, 0.42);
  text-underline-offset: 4px;
}

.legal-main {
  padding: 38px 0 64px;
}

.page-legal .site-header {
  border-bottom-color: rgba(39, 52, 45, 0.1);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 1px 0 rgba(39, 52, 45, 0.04);
}

.legal-header-row {
  min-height: 66px;
  padding-block: 9px;
  flex-wrap: nowrap;
}

.legal-brand {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
}

.legal-brand .brand-name {
  font-size: 21px;
}

.legal-brand .brand-tag {
  margin-top: 0;
  color: #8b6523;
  font-size: 10px;
}

.page-legal .site-nav {
  margin-left: auto;
}

.page-legal .nav-link {
  min-height: 36px;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: #2b342d;
  font-size: 12px;
}

.page-legal .nav-link.active {
  border-color: rgba(10, 56, 31, 0.2);
  background: #0c2416;
  color: #fff4ce;
}

.page-legal .language {
  min-height: 34px;
  border-color: rgba(39, 52, 45, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.page-legal .lang-btn {
  min-height: 36px;
  min-width: 38px;
  padding: 7px 9px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(39, 52, 45, 0.13);
  color: var(--ink);
  padding: clamp(18px, 3.5vw, 34px) 0 clamp(20px, 3.5vw, 32px);
}

.page-legal .legal-hero .eyebrow {
  border: 0;
  background: transparent;
  padding: 0;
  color: #8b6523;
}

.page-legal .legal-hero .eyebrow::before {
  box-shadow: none;
  background: var(--gold);
}

.legal-hero h1 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.03;
}

.legal-hero p {
  margin: 12px 0 0;
  max-width: 72ch;
  color: var(--muted-strong);
  font-size: 16px;
}

.meta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(39, 52, 45, 0.12);
  background: rgba(255, 253, 247, 0.78);
  color: #2d382f;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 900;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.summary-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(39, 52, 45, 0.12);
  background: rgba(255, 253, 247, 0.72);
  padding: 15px;
}

.summary-card h3 {
  margin: 0;
  color: #16231a;
  font-size: 14px;
  line-height: 1.25;
}

.summary-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(190px, 244px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: start;
  min-width: 0;
}

.legal-toc {
  position: sticky;
  top: 86px;
  min-width: 0;
  border-left: 2px solid rgba(216, 169, 72, 0.36);
  padding: 4px 0 4px 14px;
}

.legal-toc h2 {
  margin: 0 0 11px;
  color: #6c521e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.legal-toc a {
  min-height: 36px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 7px 8px;
  color: #334039;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
}

.legal-toc a:hover {
  border-color: rgba(216, 169, 72, 0.3);
  background: rgba(247, 211, 122, 0.16);
}

.legal-article {
  min-width: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(39, 52, 45, 0.13);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 3.2vw, 36px);
}

.legal-section {
  max-width: 76ch;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(39, 52, 45, 0.13);
  scroll-margin-top: 92px;
}

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

.legal-section h2 {
  margin: 0;
  color: #151915;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.22;
}

.legal-section p {
  margin: 11px 0 0;
  color: var(--muted-strong);
  font-size: 15.5px;
}

.legal-section p a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #5b3e0f;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(91, 62, 15, 0.32);
  text-underline-offset: 4px;
  vertical-align: middle;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

.legal-section li {
  margin: 6px 0;
}

.callout {
  max-width: 76ch;
  margin-top: 14px;
  border-radius: 15px;
  border: 1px solid rgba(216, 169, 72, 0.28);
  border-left: 4px solid var(--gold);
  background: rgba(247, 211, 122, 0.14);
  padding: 13px 15px;
  color: #342815;
  font-size: 14px;
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 14px;
}

caption {
  text-align: left;
  padding: 11px 13px;
  background: rgba(247, 211, 122, 0.16);
  color: #3f2b0b;
  font-weight: 900;
  border-bottom: 1px solid var(--line);
}

th,
td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: rgba(10, 56, 31, 0.08);
  color: #1c2f22;
  font-weight: 900;
}

.doc-footer {
  max-width: 76ch;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.doc-footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #5b3e0f;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(91, 62, 15, 0.32);
  text-underline-offset: 4px;
}

@media (max-width: 1060px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .store-status {
    min-width: 0;
  }

  .hero-title {
    font-size: clamp(52px, 17vw, 76px);
  }

  .hero-titleline {
    max-width: 13ch;
  }

  .page-legal .legal-header-row {
    min-height: 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .page-legal .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .page-legal .nav-link {
    flex: 0 1 auto;
    min-width: 0;
  }

  .page-legal .header-actions {
    width: auto;
    margin-left: auto;
  }

  .page-legal .legal-toc {
    border-left: 0;
    border-top: 1px solid rgba(216, 169, 72, 0.28);
    padding: 12px 0 0;
  }

  .page-legal .legal-toc a {
    padding: 6px;
    font-size: 12px;
  }

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

  .legal-section {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 20px;
  }

  .site-nav {
    gap: 4px;
  }

  .nav-link {
    min-width: 0;
    font-size: 12px;
  }

  .summary-grid,
  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .doc-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
