:root {
  --black: #080808;
  --soft-black: #141414;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gold: #c9982d;
  --gold-dark: #8b6518;
  --line: #d7d7d2;
  --muted: #626262;
  color: var(--black);
  font-family: "Jost", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; background: var(--white); color: var(--black); font-size: 16px; line-height: 1.75; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
address { padding: 20px 24px; background: var(--off-white); border-left: 3px solid var(--gold); font-style: normal; }
code { font-size: .9em; }

.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-160%); padding: 12px 16px; background: var(--white); color: var(--black); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 10; top: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px max(24px, 5vw); background: rgba(8, 8, 8, .98); border-bottom: 1px solid rgba(201, 152, 45, .45); color: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: .18em; text-decoration: none; }
.brand img { width: 36px; height: 40px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand small { margin-top: 4px; color: var(--gold); font-family: Arial, sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .28em; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.contact-link { color: rgba(255,255,255,.84); font-size: 13px; }
.language-switch { display: flex; padding: 3px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.language-switch button { min-width: 42px; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: var(--gold); color: var(--black); font-weight: 700; }

.page-shell { width: min(1060px, calc(100% - 48px)); margin: 0 auto; }
.hero { padding: clamp(70px, 9vw, 120px) 0 56px; }
.eyebrow { margin: 0; color: var(--gold-dark); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.05; }
h1 { max-width: 860px; margin: 16px 0 24px; font-size: clamp(48px, 8vw, 86px); }
h2 { margin: 0 0 40px; font-size: clamp(38px, 5.5vw, 58px); }
h3 { margin: 42px 0 12px; font-size: 20px; line-height: 1.35; }
.version { color: var(--muted); font-size: 14px; }
.intro { max-width: 820px; margin-top: 32px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2.6vw, 29px); line-height: 1.5; }
.language-note { max-width: 820px; color: var(--muted); font-size: 14px; }

.toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.toc a { min-height: 58px; display: flex; align-items: center; padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--black); font-size: 14px; font-weight: 600; text-decoration: none; }
.toc a:hover { background: var(--black); color: var(--white); }

.policy { position: relative; padding: clamp(70px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.policy:nth-of-type(even) { background: linear-gradient(90deg, transparent 0, transparent calc((100vw - min(1060px, calc(100vw - 48px)))/2), var(--off-white) calc((100vw - min(1060px, calc(100vw - 48px)))/2), var(--off-white) 100%); }
.policy article { max-width: 860px; }
.policy p, .policy li { color: #2e2e2b; }
.policy li + li { margin-top: 9px; }
.section-number { margin: 0 0 12px; color: var(--gold-dark) !important; font-family: Georgia, serif; font-size: 22px; }
.notice { margin: 34px 0; padding: 22px 26px; background: var(--black); border-left: 4px solid var(--gold); }
.notice p { margin: 0; color: var(--white); font-size: 17px; }

.data-table { margin: 32px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.data-table > div { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); }
.data-table strong, .data-table span { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-table > div:first-child { background: var(--black); color: var(--white); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0; }
.choice-grid a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border: 1px solid var(--black); color: var(--black); font-weight: 600; text-decoration: none; }
.choice-grid a::after { content: "↗"; color: var(--gold-dark); }
.choice-grid a:hover { background: var(--black); color: var(--white); }
.storage-button { min-height: 48px; margin-top: 12px; padding: 11px 18px; border: 1px solid var(--black); background: var(--white); color: var(--black); cursor: pointer; }
.storage-button:hover { background: var(--black); color: var(--white); }
.status { min-height: 28px; color: var(--muted) !important; font-size: 14px; }

.site-footer { padding: 38px 0; background: var(--black); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.footer-inner a { color: var(--white); }

html.js[data-language="es"] [data-language-panel="en"],
html.js[data-language="en"] [data-language-panel="es"] { display: none !important; }

:focus-visible { outline: 3px solid #e0b866; outline-offset: 4px; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 16px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 14px; }
  .contact-link { font-size: 12px; }
  .page-shell { width: min(100% - 32px, 1060px); }
  .toc, .choice-grid { grid-template-columns: 1fr; }
  .data-table > div { grid-template-columns: 1fr; }
  .data-table > div:first-child { display: none; }
  .data-table span:first-child { font-weight: 700; }
  .footer-inner { flex-direction: column; }
}

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

@media print {
  .site-header, .skip-link, .storage-button { display: none !important; }
  body { font-size: 11pt; }
  .page-shell { width: 100%; }
  .policy { break-inside: avoid; padding: 28px 0; }
}
