/*
 * OPLQIXNBB-Ultra 2026 editorial refresh
 * Shared visual language for legal, privacy, and support pages.
 */

:root {
  color-scheme: light;
  --app-background-color: #f3efe4;
  --paper: #fffdf7;
  --paper-muted: #e9e4d7;
  --ink: #17221d;
  --ink-soft: #48534d;
  --orange: #ff542e;
  --orange-dark: #d73518;
  --lime: #ccf06b;
  --blue: #a7d8ff;
  --line: #17221d;
  --line-soft: rgba(23, 34, 29, 0.2);
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --hard-shadow: 8px 8px 0 #17221d;
  --small-shadow: 4px 4px 0 #17221d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
  background: var(--paper-muted);
  scroll-behavior: smooth;
}

body.legal-page,
body.privacy-page,
body.support-page {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--app-background-color);
  background-image:
    linear-gradient(rgba(23, 34, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 29, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: var(--sans);
  font-feature-settings: "kern", "liga";
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

body.legal-page::before,
body.privacy-page::before,
body.support-page::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255, 84, 46, 0.13), transparent 22%),
    linear-gradient(310deg, rgba(204, 240, 107, 0.16), transparent 25%);
  content: "";
  pointer-events: none;
}

body.legal-page::after,
body.privacy-page::after,
body.support-page::after {
  position: fixed;
  top: 0;
  right: clamp(18px, 4vw, 64px);
  z-index: -1;
  width: 68px;
  height: 140px;
  border-right: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: var(--orange);
  content: "";
  transform: skewX(-10deg);
  pointer-events: none;
}

body.legal-page a,
body.privacy-page a,
body.support-page a {
  color: inherit;
}

body.legal-page button,
body.support-page button,
body.support-page input,
body.support-page textarea {
  font: inherit;
}

body.legal-page ::selection,
body.privacy-page ::selection,
body.support-page ::selection {
  color: var(--ink);
  background: var(--lime);
}

/* Shared brand language */
body.legal-page .brand-lockup,
body.privacy-page .brand-lockup,
body.support-page .brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

body.legal-page .brand-mark,
body.privacy-page .brand-mark,
body.support-page .brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 0;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 3px 3px 0 currentColor;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-3deg);
}

body.legal-page .brand-name,
body.privacy-page .brand-name,
body.support-page .brand-name {
  overflow: hidden;
  color: inherit;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.legal-page .brand-tag,
body.privacy-page .brand-tag,
body.support-page .brand-tag {
  padding-left: 10px;
  border-left: 1px solid currentColor;
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.72;
}

/* Agreement / landing page */
body.legal-page {
  padding-bottom: 132px;
}

body.legal-page .page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 54px) 20px 76px;
}

body.legal-page .shell {
  width: min(1220px, 100%);
  margin: 0 auto;
}

body.legal-page .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
  margin-bottom: 34px;
  padding: clamp(28px, 5vw, 64px);
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
  isolation: isolate;
}

body.legal-page .hero::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, var(--orange) 0 66%, var(--lime) 66% 84%, var(--blue) 84%);
  content: "";
}

body.legal-page .hero::after {
  position: absolute;
  top: 44px;
  right: 38%;
  z-index: -1;
  width: 180px;
  height: 180px;
  border: 28px solid var(--paper-muted);
  border-radius: 50%;
  content: "";
  opacity: 0.52;
}

body.legal-page .hero > * {
  position: relative;
  z-index: 1;
}

body.legal-page .brand-lockup {
  margin-bottom: clamp(38px, 5vw, 68px);
}

body.legal-page .eyebrow,
body.support-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--orange-dark);
  background: none;
  box-shadow: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.legal-page .eyebrow::before,
body.support-page .eyebrow::before {
  width: 22px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
  content: "";
}

body.legal-page h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.35rem, 6.8vw, 6.8rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

body.legal-page .intro {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}

body.legal-page .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 720px;
  margin-top: 38px;
  border: 2px solid var(--ink);
  background: var(--ink);
}

body.legal-page .hero-stats > div {
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid rgba(255, 253, 247, 0.35);
  border-radius: 0;
  background: var(--ink);
}

body.legal-page .hero-stats > div:last-child {
  border-right: 0;
}

body.legal-page .hero-stats strong,
body.legal-page .hero-stats span {
  display: block;
}

body.legal-page .hero-stats strong {
  color: var(--lime);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

body.legal-page .hero-stats span {
  margin-top: 6px;
  color: rgba(255, 253, 247, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.legal-page .trust-panel {
  align-self: end;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 26px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: var(--small-shadow);
  transform: rotate(1deg);
}

body.legal-page .panel-kicker,
body.legal-page .label,
body.support-page .section-label {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.legal-page .trust-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

body.legal-page .trust-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.legal-page .trust-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid rgba(23, 34, 29, 0.28);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

body.legal-page .trust-list li::before {
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

body.legal-page .content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

body.legal-page .document {
  position: relative;
  min-height: 420px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
}

body.legal-page .document::before {
  display: none;
}

body.legal-page .document-header {
  position: relative;
  padding: 28px 30px 24px;
  border-bottom: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

body.legal-page .document-header::after {
  position: absolute;
  top: 22px;
  right: 26px;
  color: var(--lime);
  content: "↘";
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 400;
}

body.legal-page .disclaimer .document-header {
  color: var(--ink);
  background: var(--orange);
}

body.legal-page .disclaimer .document-header::after {
  color: var(--ink);
  content: "!";
}

body.legal-page .document-header .label {
  color: inherit;
  opacity: 0.65;
}

body.legal-page .document-header h2 {
  margin: 0;
  color: inherit;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
}

body.legal-page .document-body {
  padding: clamp(24px, 4vw, 40px);
  color: var(--ink);
}

body.legal-page .document-body > p,
body.legal-page .notice p,
body.legal-page .terms li div > span,
body.legal-page .disclaimer-list li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

body.legal-page .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.legal-page .section-title::after {
  height: 1px;
  flex: 1;
  background: var(--line-soft);
  content: "";
}

body.legal-page .document-body > p + .section-title,
body.legal-page .disclaimer-list + .section-title {
  margin-top: 34px;
}

body.legal-page .terms,
body.legal-page .disclaimer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.legal-page .terms {
  display: grid;
  gap: 0;
}

body.legal-page .terms li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  background: none;
}

body.legal-page .terms .number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  box-shadow: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

body.legal-page .terms li:nth-child(even) .number {
  background: var(--blue);
}

body.legal-page .terms li div {
  display: block;
}

body.legal-page .terms li strong {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

body.legal-page .notice {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
  margin: 0 0 22px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: #ffe0d5;
  box-shadow: var(--small-shadow);
}

body.legal-page .notice-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
}

body.legal-page .notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
}

body.legal-page .notice p {
  margin: 0;
}

body.legal-page .disclaimer-list {
  counter-reset: risk;
}

body.legal-page .disclaimer-list li {
  position: relative;
  margin: 0;
  padding: 17px 0 17px 38px;
  border-bottom: 1px solid var(--line-soft);
  counter-increment: risk;
}

body.legal-page .disclaimer-list li::before {
  position: absolute;
  top: 18px;
  left: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--orange-dark);
  background: none;
  content: "R" counter(risk, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

body.legal-page .agreement-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 -10px 0 rgba(23, 34, 29, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.legal-page .agreement-inner {
  display: flex;
  width: min(1220px, calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}

body.legal-page .agreement-copy {
  min-width: 0;
  max-width: 610px;
}

body.legal-page .agreement-copy strong,
body.legal-page .agreement-copy span {
  display: block;
}

body.legal-page .agreement-copy strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
}

body.legal-page .agreement-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

body.legal-page .action-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

body.legal-page .privacy-button,
body.legal-page .agree-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
}

body.legal-page .agree-button {
  color: var(--ink);
  background: var(--orange);
  box-shadow: var(--small-shadow);
}

body.legal-page .privacy-button:hover,
body.legal-page .agree-button:hover {
  box-shadow: var(--small-shadow);
  transform: translate(-2px, -2px);
}

body.legal-page .privacy-button:focus-visible,
body.legal-page .agree-button:focus-visible,
body.support-page a:focus-visible,
body.support-page button:focus-visible,
body.support-page input:focus-visible,
body.support-page textarea:focus-visible,
body.privacy-page a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Privacy page */
body.privacy-page main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) 0 80px;
}

body.privacy-page .document {
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}

body.privacy-page .hero {
  position: relative;
  padding: clamp(30px, 6vw, 72px);
  border-bottom: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

body.privacy-page .hero::before {
  position: absolute;
  top: -90px;
  right: -50px;
  z-index: -1;
  width: 390px;
  height: 390px;
  border: 70px solid var(--orange);
  border-radius: 50%;
  content: "";
  opacity: 0.95;
}

body.privacy-page .hero::after {
  position: absolute;
  right: 38%;
  bottom: -18px;
  z-index: -1;
  width: 150px;
  height: 70px;
  background: var(--lime);
  content: "";
  transform: rotate(-12deg);
}

body.privacy-page .brand-lockup {
  margin-bottom: clamp(42px, 7vw, 88px);
}

body.privacy-page .brand-mark {
  color: var(--paper);
}

body.privacy-page .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--paper);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.privacy-page .badge::before {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

body.privacy-page h1 {
  max-width: 850px;
  margin: 24px 0 20px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

body.privacy-page .subtitle {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 253, 247, 0.68);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.6;
}

body.privacy-page .policy-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

body.privacy-page .policy-highlights span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 253, 247, 0.5);
  border-radius: 0;
  color: var(--paper);
  background: rgba(255, 253, 247, 0.06);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.privacy-page .policy-highlights span:first-child {
  color: var(--ink);
  background: var(--lime);
}

body.privacy-page .meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-muted);
}

body.privacy-page .meta-item {
  min-height: 118px;
  padding: 24px 28px;
  border-right: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper-muted);
}

body.privacy-page .meta-item:nth-child(2) {
  background: var(--blue);
}

body.privacy-page .meta-item:last-child {
  border-right: 0;
  background: var(--lime);
}

body.privacy-page .meta-label {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.privacy-page .meta-value {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.privacy-page .meta-value a {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

body.privacy-page .content {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px);
}

body.privacy-page .summary {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  margin: 0 0 54px;
  padding: 25px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: #ffe0d5;
  box-shadow: var(--small-shadow);
}

body.privacy-page .summary-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
}

body.privacy-page .summary h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
}

body.privacy-page .summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

body.privacy-page section {
  position: relative;
  padding: 34px 0 34px 28px;
  border-top: 1px solid var(--line-soft);
}

body.privacy-page section::before {
  position: absolute;
  top: 43px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

body.privacy-page section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

body.privacy-page section:first-of-type::before {
  top: 9px;
}

body.privacy-page section h2 {
  margin: 0 0 15px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

body.privacy-page section p,
body.privacy-page section li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

body.privacy-page section p {
  margin: 0 0 16px;
}

body.privacy-page section ul {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

body.privacy-page section li {
  position: relative;
  margin: 11px 0;
  padding-left: 25px;
}

body.privacy-page section li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 11px;
  height: 2px;
  border-radius: 0;
  background: var(--orange);
  content: "";
}

body.privacy-page section a {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.privacy-page .statement {
  margin: 28px 0 0;
  padding: 19px 21px;
  border: 2px solid var(--ink);
  border-left: 10px solid var(--orange);
  border-radius: 0;
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
}

body.privacy-page .footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(28px, 6vw, 72px);
  border-top: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

body.privacy-page .footer strong {
  color: var(--lime);
}

/* Support page */
body.support-page .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--lime);
  box-shadow: var(--small-shadow);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

body.support-page .skip-link:focus {
  transform: translateY(0);
}

body.support-page .page {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) 0 62px;
}

body.support-page .topbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

body.support-page .topbar .brand-lockup,
body.support-page .topbar .brand-name,
body.support-page .topbar .brand-tag {
  color: var(--paper);
}

body.support-page .topbar-actions,
body.support-page .service-status {
  display: flex;
  align-items: center;
}

body.support-page .topbar-actions {
  gap: 13px;
}

body.support-page .service-status {
  gap: 8px;
  color: rgba(255, 253, 247, 0.68);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.support-page .status-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: none;
}

body.support-page .back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

body.support-page .back-link:hover {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

body.support-page .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.45fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
  padding: clamp(34px, 6vw, 72px);
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
  isolation: isolate;
}

body.support-page .hero::before {
  position: absolute;
  right: -56px;
  bottom: -116px;
  z-index: -1;
  width: 330px;
  height: 330px;
  border: 58px solid var(--orange);
  border-radius: 50%;
  content: "";
}

body.support-page .hero::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 10px;
  background: var(--orange);
  content: "";
}

body.support-page .hero-copy {
  position: relative;
  z-index: 1;
}

body.support-page .hero .eyebrow {
  color: var(--lime);
}

body.support-page .hero h1 {
  max-width: 740px;
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(3.4rem, 7.5vw, 7.4rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

body.support-page .hero-intro {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 253, 247, 0.67);
  font-size: 16px;
  line-height: 1.65;
}

body.support-page .response-card {
  position: relative;
  z-index: 1;
  border: 2px solid var(--paper);
  border-radius: 0;
  padding: 24px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 6px 6px 0 var(--orange);
  transform: rotate(1.5deg);
}

body.support-page .response-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
}

body.support-page .response-icon svg,
body.support-page .card svg,
body.support-page .button-icon,
body.support-page .success-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.support-page .response-label,
body.support-page .response-value,
body.support-page .response-note {
  color: var(--ink);
}

body.support-page .response-label {
  margin: 0 0 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.support-page .response-value {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
}

body.support-page .response-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.72;
}

body.support-page .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.55fr);
  gap: 34px;
  align-items: start;
}

body.support-page .card {
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--hard-shadow);
  overflow: hidden;
}

body.support-page .form-card {
  padding: 0;
}

body.support-page .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 2px solid var(--ink);
  background: var(--blue);
}

body.support-page .card-header h2,
body.support-page .side-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
}

body.support-page .card-header h2 {
  font-size: clamp(28px, 4vw, 40px);
}

body.support-page .secure-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.support-page .secure-note svg {
  width: 15px;
}

body.support-page .support-form {
  display: grid;
  gap: 27px;
  padding: 34px;
}

body.support-page .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.support-page .field,
body.support-page fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.support-page .field-label,
body.support-page .field-legend {
  display: block;
  margin: 0 0 9px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.support-page .optional {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
}

body.support-page input[type="text"],
body.support-page input[type="email"],
body.support-page textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: #f7f3e8;
  box-shadow: inset 0 -4px 0 rgba(23, 34, 29, 0.07);
  font-size: 14px;
  outline: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

body.support-page input[type="text"],
body.support-page input[type="email"] {
  min-height: 52px;
  padding: 0 15px;
}

body.support-page textarea {
  min-height: 170px;
  padding: 14px 15px 38px;
  line-height: 1.6;
  resize: vertical;
}

body.support-page input::placeholder,
body.support-page textarea::placeholder {
  color: #848b86;
}

body.support-page input[type="text"]:focus,
body.support-page input[type="email"]:focus,
body.support-page textarea:focus {
  background: var(--paper);
  box-shadow: inset 0 -5px 0 var(--orange);
}

body.support-page .topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.support-page .topic-option {
  position: relative;
  min-width: 0;
}

body.support-page .topic-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.support-page .topic-option label {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink-soft);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transition: background 130ms ease, box-shadow 130ms ease, transform 130ms ease;
  cursor: pointer;
}

body.support-page .topic-option label:hover {
  background: #ffe0d5;
}

body.support-page .topic-option input:checked + label {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

body.support-page .topic-option input:focus-visible + label {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

body.support-page .textarea-wrap {
  position: relative;
}

body.support-page .character-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 3px 6px;
  color: var(--ink-soft);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

body.support-page .form-note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--ink);
  border-left: 7px solid var(--orange);
  border-radius: 0;
  color: var(--ink-soft);
  background: #ffe0d5;
  font-size: 11px;
  line-height: 1.55;
}

body.support-page .form-note strong {
  color: var(--ink);
}

body.support-page .form-note-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
}

body.support-page .form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

body.support-page .form-hint {
  max-width: 390px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

body.support-page .submit-button,
body.support-page .modal-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--orange);
  box-shadow: var(--small-shadow);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
  cursor: pointer;
}

body.support-page .submit-button:hover,
body.support-page .modal-button:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

body.support-page .submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.support-page .button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(23, 34, 29, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: editorial-spin 700ms linear infinite;
}

body.support-page .submit-button.is-loading .button-spinner {
  display: block;
}

body.support-page .submit-button.is-loading .button-icon {
  display: none;
}

body.support-page #form-status {
  margin: -8px 0 0;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

body.support-page .sidebar {
  display: grid;
  gap: 22px;
}

body.support-page .side-card {
  padding: 26px;
  box-shadow: var(--small-shadow);
  overflow: visible;
}

body.support-page .side-card:nth-child(2) {
  background: var(--blue);
  transform: rotate(-1deg);
}

body.support-page .side-card h3 {
  font-size: 25px;
}

body.support-page .process-list,
body.support-page .check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

body.support-page .process-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

body.support-page .process-number {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

body.support-page .process-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
}

body.support-page .check-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 24px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

body.support-page .check-list li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

body.support-page .contact-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  padding: 21px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--small-shadow);
}

body.support-page .contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
  color: var(--lime);
}

body.support-page .contact-card p,
body.support-page .contact-card span {
  margin: 0;
  color: var(--paper);
}

body.support-page .contact-card p {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}

body.support-page .contact-card span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  opacity: 0.62;
}

body.support-page .page-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 22px 0 0;
  border-top: 2px solid var(--ink);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

body.support-page .modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 34, 29, 0.78);
  opacity: 0;
  transition: opacity 180ms ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

body.support-page .modal[hidden] {
  display: none;
}

body.support-page .modal.is-visible {
  opacity: 1;
}

body.support-page .modal-card {
  width: min(500px, 100%);
  padding: clamp(28px, 6vw, 52px);
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--orange);
  text-align: left;
  transform: translateY(12px) rotate(-1deg);
  transition: transform 180ms ease;
}

body.support-page .modal.is-visible .modal-card {
  transform: translateY(0) rotate(-1deg);
}

body.support-page .success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 0 24px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
}

body.support-page .modal-kicker {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.support-page .modal-card h2 {
  margin: 0 0 13px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 0.98;
}

body.support-page .modal-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

body.support-page .confirmation-box {
  margin: 23px 0;
  padding: 15px;
  border: 1px solid var(--ink);
  background: var(--blue);
}

body.support-page .confirmation-box strong,
body.support-page .confirmation-box span {
  display: block;
}

body.support-page .confirmation-box strong {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.support-page .confirmation-box span {
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

body.support-page.modal-open {
  overflow: hidden;
}

@keyframes editorial-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 920px) {
  body.legal-page .hero,
  body.support-page .hero {
    grid-template-columns: 1fr;
  }

  body.legal-page .hero::after {
    right: -60px;
  }

  body.legal-page .trust-panel {
    max-width: 620px;
    transform: none;
  }

  body.legal-page .content,
  body.support-page .content-grid {
    grid-template-columns: 1fr;
  }

  body.support-page .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.support-page .contact-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.legal-page {
    padding-bottom: 0;
  }

  body.legal-page::after,
  body.privacy-page::after,
  body.support-page::after {
    right: 18px;
    width: 34px;
    height: 76px;
  }

  body.legal-page .page {
    padding-right: 14px;
    padding-bottom: 24px;
    padding-left: 14px;
  }

  body.legal-page .hero {
    padding: 28px 20px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  body.legal-page .brand-lockup,
  body.privacy-page .brand-lockup {
    margin-bottom: 38px;
  }

  body.legal-page h1,
  body.privacy-page h1,
  body.support-page .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
    line-height: 0.9;
  }

  body.legal-page .hero-stats {
    grid-template-columns: 1fr;
  }

  body.legal-page .hero-stats > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 247, 0.35);
  }

  body.legal-page .hero-stats > div:last-child {
    border-bottom: 0;
  }

  body.legal-page .content {
    gap: 24px;
  }

  body.legal-page .document {
    box-shadow: 5px 5px 0 var(--ink);
  }

  body.legal-page .document-header,
  body.legal-page .document-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.legal-page .terms li {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  body.legal-page .terms .number {
    width: 38px;
    height: 38px;
  }

  body.legal-page .notice {
    grid-template-columns: 1fr;
  }

  body.legal-page .agreement-bar {
    position: relative;
  }

  body.legal-page .agreement-inner {
    width: calc(100% - 28px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0;
  }

  body.legal-page .action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.legal-page .agree-button {
    grid-column: 1 / -1;
  }

  body.privacy-page main,
  body.support-page .page {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  body.privacy-page .document {
    box-shadow: 5px 5px 0 var(--ink);
  }

  body.privacy-page .hero {
    padding-right: 22px;
    padding-left: 22px;
  }

  body.privacy-page .hero::before {
    top: -48px;
    right: -98px;
    width: 260px;
    height: 260px;
    border-width: 46px;
    opacity: 0.74;
  }

  body.privacy-page .meta-grid {
    grid-template-columns: 1fr;
  }

  body.privacy-page .meta-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  body.privacy-page .meta-item:last-child {
    border-bottom: 0;
  }

  body.privacy-page .content {
    padding-right: 21px;
    padding-left: 21px;
  }

  body.privacy-page .summary {
    grid-template-columns: 1fr;
  }

  body.privacy-page section {
    padding-left: 22px;
  }

  body.privacy-page .footer {
    flex-direction: column;
    gap: 6px;
  }

  body.support-page .topbar {
    align-items: flex-start;
  }

  body.support-page .service-status,
  body.support-page .brand-tag {
    display: none;
  }

  body.support-page .hero {
    padding: 38px 22px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  body.support-page .response-card {
    transform: none;
  }

  body.support-page .content-grid {
    gap: 24px;
  }

  body.support-page .card {
    box-shadow: 5px 5px 0 var(--ink);
  }

  body.support-page .card-header,
  body.support-page .support-form {
    padding: 24px 20px;
  }

  body.support-page .secure-note {
    display: none;
  }

  body.support-page .field-row {
    grid-template-columns: 1fr;
  }

  body.support-page .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.support-page .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.support-page .submit-button {
    width: 100%;
  }

  body.support-page .sidebar {
    grid-template-columns: 1fr;
  }

  body.support-page .contact-card {
    grid-column: auto;
  }

  body.support-page .page-footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  body.legal-page .brand-tag,
  body.privacy-page .brand-tag,
  body.support-page .brand-tag {
    display: none;
  }

  body.legal-page .brand-name,
  body.privacy-page .brand-name,
  body.support-page .brand-name {
    max-width: 160px;
  }

  body.legal-page .action-buttons {
    grid-template-columns: 1fr;
  }

  body.legal-page .agree-button {
    grid-column: auto;
  }

  body.support-page .back-link span:last-child {
    display: none;
  }
}

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

@media print {
  body.legal-page,
  body.privacy-page,
  body.support-page {
    color: #111;
    background: #fff;
  }

  body.legal-page::before,
  body.legal-page::after,
  body.privacy-page::before,
  body.privacy-page::after,
  body.support-page::before,
  body.support-page::after,
  body.legal-page .agreement-bar,
  body.support-page .topbar-actions,
  body.support-page .support-form,
  body.support-page .modal {
    display: none !important;
  }

  body.legal-page .hero,
  body.legal-page .document,
  body.privacy-page .document,
  body.support-page .hero,
  body.support-page .card {
    box-shadow: none;
  }
}
