.legal-page {
  color-scheme: dark;
  --foreground: #f6f4ed;
  --muted: #bdc2b5;
  --line: #ffffff20;
  --legal-gold: #d6b679;
  background: #131412;
  color: var(--foreground);
}
.legal-page .site-header { background: #191b17; border-color: var(--line) }
.legal-page .header-inner, .legal-shell { width: min(100%, 1240px) }
.legal-page .section-nav a[aria-current] { color: var(--legal-gold); text-underline-offset: 7px; text-decoration: underline }
.legal-page .skip-link:focus { z-index: 30 }
.legal-page a { text-underline-offset: 4px }
.legal-page :focus-visible { outline-color: #e3c48a }
.legal-shell { margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px) }
.legal-main { position: relative; isolation: isolate; padding-block: clamp(32px, 5vw, 64px) 80px }
.legal-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto;
  height: 670px;
  background: radial-gradient(ellipse at 85% 10%, #a4823e12, transparent 60%);
}
.legal-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 52px); color: var(--muted); font-size: 12px }
.legal-breadcrumb a { color: var(--legal-gold) }
.legal-kicker { color: var(--legal-gold); font-size: 11px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase }
.legal-page h1 { font-size: clamp(42px, 6.3vw, 76px); font-weight: 650; line-height: 1.06; letter-spacing: -.055em; margin: 18px 0 24px; max-width: 12ch }
.legal-lead { max-width: 49ch; color: #d2d6cb; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75 }
.legal-page h2 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.035em; line-height: 1.25 }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(32px, 6vw, 88px); align-items: start }
.account-explainer { min-width: 0 }
.account-flow { min-width: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid #d1b47d42; border-radius: 20px; background: linear-gradient(150deg, #24271f, #1a1d17 70%); box-shadow: 0 20px 60px #0002 }
.account-flow-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px }
.account-emblem { width: 42px; height: 42px; opacity: .9 }
.account-flow h2 { margin-bottom: 12px; overflow-wrap: anywhere }
.account-flow p { color: #c5cbbd; font-size: 14px; line-height: 1.75 }
.account-flow section + section { margin-top: 0 }
.account-flow label:not(.account-consent) { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 600 }
.account-flow input:not([type=checkbox]), .account-dialog input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #858c795c; border-radius: 9px; background: #11140f; color: #f6f4ed; font: inherit;
}
.account-flow input:focus, .account-dialog input:focus { border-color: var(--legal-gold) }
.account-flow button, .account-dialog button { min-height: 48px; padding: 12px 18px; width: 100%; border: 1px solid transparent; border-radius: 9px; font: 600 14px/1.5 Inter, sans-serif; cursor: pointer }
.account-primary { margin-top: 24px; background: #9b783b; color: #fff }
.account-primary:hover { background: #ad8a49 }
.account-flow button:disabled, .account-dialog button:disabled { opacity: .45; cursor: default }
.account-google { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; color: #e3e3e3; background: #131314; border-color: #8e918f !important; font-family: 'Google Sans', Arial, sans-serif !important; font-weight: 500 !important }
.account-google:hover { background: #1b1b1d }
.google-mark { width: 20px; height: 20px; flex: 0 0 20px; background: url('assets/google-signin-dark.png') center / 40px 40px no-repeat }
.account-text { margin-top: 12px; background: transparent; color: #d5bc8d; text-decoration: underline; text-underline-offset: 5px }
.account-danger { margin-top: 22px; background: #8c3b32; color: #fff; border-color: #c97b6d66 !important }
.account-danger:hover { background: #a4493e }
.account-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 4px; color: #aab19f; font-size: 11px }
.account-divider::before, .account-divider::after { content: ""; height: 1px; flex: 1; background: var(--line) }
.account-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; color: #dce0d3; font-size: 13px; line-height: 1.7; cursor: pointer }
.account-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: #bf9b5a }
.account-notice { margin-block: 22px; padding: 14px 16px; border: 1px solid #c6a56445; border-radius: 10px; background: #b89a5d0a; color: #ded2b8; font-size: 13px; line-height: 1.75 }
.account-notice strong { color: #efdfbd }
.account-feedback p:not(:empty) { margin-top: 20px; padding: 14px; border-radius: 10px; background: #11140f88; border: 1px solid #a2ac8c33 }
.account-feedback #error:not(:empty) { color: #ffb8ab; background: #9e473517; border-color: #b3604c55 }
.account-feedback p:empty { display: none }
.account-flow[aria-busy=true] .account-flow-top::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d4b173; box-shadow: 0 0 0 5px #d4b17315 }
.account-flow[aria-busy=true] .account-emblem { display: none }
.account-success-icon { width: 52px; height: 52px; padding: 13px; margin-bottom: 20px; border: 1px solid #d4b17366; border-radius: 50%; color: #d4b173 }
.account-home-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--legal-gold); margin-top: 16px; font-size: 14px }
.account-steps { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 20px }
.account-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start }
.account-step-number { padding-top: 3px; color: #c5a56c; font-size: 11px; font-weight: 650; letter-spacing: .12em }
.account-steps h3 { font-size: 16px; font-weight: 650; letter-spacing: -.02em }
.account-steps p { color: #aeb6a5; font-size: 13px; line-height: 1.7; margin-top: 4px }
.account-details { margin-top: 36px; border-top: 1px solid var(--line) }
.account-details details { border-bottom: 1px solid var(--line); padding: 18px 0 }
.account-details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #e5e6dd; padding-right: 24px; min-height: 24px }
.account-details details p { color: #b8c0ae; font-size: 13px; line-height: 1.85; margin-top: 12px }
.account-help { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, .7fr) 1.3fr; gap: 24px }
.account-help h2 { max-width: 15ch }
.account-help p { color: #bfc6b6; font-size: 14px; line-height: 1.85; margin-bottom: 16px }
.legal-contact { overflow-wrap: anywhere; color: #e6d1aa }
.legal-contact a { color: #dfc18c }
.legal-page .site-footer { background: #191b17; border-top: 1px solid var(--line) }
.legal-page .footer-inner { padding-block: 28px; gap: 24px }
.legal-page .footer-inner p { color: #aeb6a5; font-size: 12px }
.account-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; color: #f6f4ed; background: #1b1e17; border: 1px solid #cfaa6d66; border-radius: 18px }
.account-dialog::backdrop { background: #050705c9; backdrop-filter: blur(6px) }
.account-dialog h2 { margin: 14px 0 16px; font-size: 28px }
.account-dialog p { font-size: 14px; color: #c4cbbb; line-height: 1.8 }
.account-dialog label { display: block; margin: 22px 0 8px; font-size: 13px; font-weight: 600 }
.account-dialog .account-google { margin-top: 18px }
.privacy-intro { position: relative; isolation: isolate; overflow: clip; padding-bottom: 40px; border-bottom: 1px solid var(--line) }
.privacy-intro::after { content: ""; position: absolute; z-index: -1; width: clamp(280px, 40vw, 460px); aspect-ratio: 1; right: -30px; top: -45px; border-radius: 50%; opacity: .28; background: repeating-radial-gradient(circle, transparent 0 63px, #b7955145 64px 65px, transparent 66px 128px); mask-image: linear-gradient(100deg, transparent, black 30% 65%, transparent) }
.privacy-updated { color: #aab39d; font-size: 12px; margin-top: 24px }
.privacy-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px }
.privacy-overview strong { display: block; font-family: Manrope, Inter, sans-serif; font-size: 16px; font-weight: 650; margin-bottom: 6px }
.privacy-overview p { color: #abb59f; font-size: 13px; line-height: 1.75; max-width: 32ch }
.privacy-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); margin-top: 48px }
.privacy-toc { position: sticky; top: 28px; align-self: start }
.privacy-toc p { margin-bottom: 18px }
.privacy-toc nav { display: grid; gap: 6px }
.privacy-toc a { min-height: 40px; padding: 8px 12px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: #b7c1a9; font-size: 13px; text-decoration: none }
.privacy-toc a:hover { color: #ead0a0 }
.privacy-toc a[aria-current="location"] { color: #ead0a0; border-left-color: var(--legal-gold); background: #d6b6790e; font-weight: 650 }
.privacy-article { min-width: 0 }
.privacy-article section { position: relative; padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px }
.privacy-article h2 { margin: 10px 0 20px; max-width: 25ch }
.privacy-article p { max-width: 69ch; color: #bdc6b3; font-size: 15px; line-height: 1.9; margin-top: 16px; overflow-wrap: anywhere }
.privacy-article ul { max-width: 69ch; padding-left: 22px; margin-top: 16px; color: #bdc6b3; font-size: 15px; line-height: 1.9 }
.privacy-article li + li { margin-top: 8px }
.privacy-article a { color: #dec18c }
.privacy-article .legal-contact { color: #ead5b0 }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none }
.privacy-closing { padding: 24px; border: 1px solid #c4a46b40; border-radius: 14px; background: #b1985b09 }
.privacy-closing p { color: #c6cebb; font-size: 14px; line-height: 1.8; margin-top: 12px }
.privacy-closing a { display: inline-flex; align-items: center; min-height: 44px; color: var(--legal-gold); font-size: 14px; font-weight: 600; margin-top: 12px }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: minmax(0, 1fr) }
  .account-flow { width: 100%; max-width: 560px; justify-self: center }
  .privacy-layout { grid-template-columns: minmax(0, 1fr); gap: 36px }
  .privacy-toc { position: static; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #191c16 }
  .privacy-toc nav { grid-template-columns: 1fr 1fr; gap: 4px 16px }
}
@media (max-width: 600px) {
  .legal-main { padding-top: 24px }
  .legal-breadcrumb { margin-bottom: 32px }
  .legal-page .section-nav { order: 2; width: 100%; gap: 18px; padding-top: 6px; border-top: 1px solid var(--line) }
  .legal-page .section-nav a { min-height: 40px; font-size: 13px; display: inline-flex; align-items: center }
  .account-flow { padding: 24px 20px }
  .account-help { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 40px }
  .account-help h2 { max-width: none }
  .account-dialog { padding: 24px }
  .privacy-overview { grid-template-columns: minmax(0, 1fr); gap: 22px }
  .privacy-intro::after { right: 0; top: 0; width: 280px }
  .privacy-article p, .privacy-article ul { font-size: 14px; line-height: 1.9 }
}
