:root {
  --green: #7bdb7b;
  --ink: #3c3c3c;
  --muted: #756d7d;
  --canvas: #f1eee9;
  --surface: #fff;
  --line: #d8d2c8;
  --soft: #f7f8f4;
  color-scheme: light;
  font-family: Inter, Avenir Next, Avenir, "Segoe UI", Arial, sans-serif;
}

:root.is-dark-theme {
  --ink: #f3efe8;
  --muted: #aaa3b0;
  --canvas: #111217;
  --surface: #1c1d24;
  --line: #34363e;
  --soft: #24252c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(16px);
}

.legal-header-inner {
  width: min(100% - 32px, 1040px);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

:root.is-dark-theme .legal-brand-light,
:root:not(.is-dark-theme) .legal-brand-dark {
  display: none;
}

.legal-language-select {
  width: fit-content;
  max-width: 100%;
  position: relative;
  flex: 0 0 auto;
}

.legal-language-select summary {
  list-style: none;
}

.legal-language-select summary::-webkit-details-marker {
  display: none;
}

.legal-language-select-button {
  width: fit-content;
  max-width: min(174px, calc(100vw - 32px));
  white-space: nowrap;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 0;
  padding-inline: 14px 13px;
  border: none;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.legal-language-select-button:hover,
.legal-language-select[open] .legal-language-select-button {
  border-color: rgba(93, 10, 224, .28);
  background: var(--soft);
}

.legal-language-select-button svg {
  width: 12px;
  height: 8px;
  flex: 0 0 auto;
  overflow: visible;
  transition: transform 160ms ease;
}

.legal-language-select-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.legal-language-select[open] .legal-language-select-button svg {
  transform: rotate(180deg);
}

.legal-language-list {
  width: max-content;
  min-width: 100%;
  max-width: min(220px, calc(100vw - 24px));
  max-height: min(244px, 42vh);
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  inset-inline-end: 0;
  inset-inline-start: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid rgba(93, 10, 224, .16);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 16px 38px rgba(44, 27, 61, .2);
}


.legal-language-option {
  width: 100%;
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  position: relative;
  padding-block: 7px;
  padding-inline: 10px 30px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.legal-language-option:hover,
.legal-language-option[aria-selected="true"] {
  background: var(--soft);
}

.legal-language-option[aria-selected="true"]::after {
  content: "\2713";
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-50%);
}

.legal-language-option strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-language-option small {
  color: var(--muted);
  font-size: 9px;
}

:root.is-dark-theme .legal-language-select-button,
:root.is-dark-theme .legal-language-list {
  border-color: rgba(255, 255, 255, .12);
  color: var(--ink);
  background: #24252c;
}

:root.is-dark-theme .legal-language-select-button:hover,
:root.is-dark-theme .legal-language-select[open] .legal-language-select-button,
:root.is-dark-theme .legal-language-option[aria-selected="true"],
:root.is-dark-theme .legal-language-option:hover {
  background: #30313a;
}

:root.is-dark-theme .legal-language-option + .legal-language-option {
  border-top-color: rgba(255, 255, 255, .08);
}

.legal-main {
  width: min(100% - 32px, 840px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.legal-hero {
  margin-bottom: 48px;
}

.legal-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .98;
}

.legal-updated {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.legal-section {
  min-width: 0;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 22px;
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.legal-section h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  letter-spacing: -.02em;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.7;
}

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

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 21px;
}

.legal-table-wrap {
  min-width: 0;
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.legal-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-cta-link {
  min-height: 48px;
  margin-top: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 13px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.legal-footer {
  border-top: 1px solid var(--line);
}

.legal-footer-inner {
  width: min(100% - 32px, 1040px);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-consent-panel {
  position: fixed;
  z-index: 2000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  width: min(calc(100% - 32px), 660px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 24px 70px rgba(24, 18, 31, .24);
  backdrop-filter: blur(18px);
}

.privacy-consent-panel[hidden] {
  display: none;
}

.privacy-consent-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.privacy-consent-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.035em;
}

.privacy-consent-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.privacy-consent-description,
.privacy-consent-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.privacy-consent-description {
  margin: 12px 0 6px;
}

.privacy-consent-status {
  margin: 0 0 14px;
}

.privacy-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy-choice-button {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.privacy-choice-button:hover {
  background: var(--soft);
}

.privacy-consent-more {
  margin: 13px 0 0;
  font-size: 12px;
  text-align: center;
}

button:focus-visible,
a:focus-visible,
.legal-language-select summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 72%, white);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .legal-header-inner {
    min-height: 68px;
    padding: 10px 0;
  }

  .legal-main {
    width: min(100% - 24px, 840px);
    padding-top: 42px;
  }

  .legal-footer-inner {
    padding: 22px 0;
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .legal-main {
    width: min(100% - 20px, 840px);
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .legal-hero {
    margin-bottom: 32px;
  }

  .legal-hero h1 {
    font-size: clamp(36px, 13vw, 58px);
  }

  .legal-section {
    padding: 22px 18px;
    border-radius: 17px;
  }

  .privacy-consent-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Keep the legal hero at the first viewport while leaving the document scrollable. */
.legal-hero {
  min-height: calc(100svh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-footer-inner {
  width: min(calc(100% - 32px), 1040px);
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer-icon {
  display: block;
  width: 32px;
  height: 32px;
}

.site-footer-icon-dark {
  display: none;
}

:root.is-dark-theme .site-footer-icon-light {
  display: none;
}

:root.is-dark-theme .site-footer-icon-dark {
  display: block;
}

.site-footer-links {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.site-footer-links a,
.site-footer-links button {
  color: inherit;
  font: inherit;
  font-weight: 750;
}

.site-footer-links a,
.site-footer-lks button {
  font: inherit;
}

.site-footer-links a {
  color: var(--ink);
  text-decoration: none;
  transition: all;
}

.site-footer-links a:hover {
  color: var(--purple-dark);
  text-decoration: underline;
}

.site-footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-copyright {
  justify-self: end;
  margin: 0;
  text-align: right;
}

@media (max-width: 720px) {
  .site-footer-inner {
    min-height: 0;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .site-footer-brand,
  .site-footer-links,
  .site-footer-copyright {
    justify-self: auto;
  }

  .site-footer-copyright {
    text-align: center;
  }
}

.site-footer-links .privacy-choice-button {
  min-height: auto;
  border-radius: 0;
  font-size: inherit;
  font-weight: 750;
}
