/* © Nuvola - www.nuvola.cat 2026
   rubostudio.es — web de presentación (landing Nui con la paleta de Rubo Studio). */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Tokens (nombres Nui, paleta Rubo Studio) ─────────────────────────────── */
:root {
  --primary: 236 48 19;          /* #ec3013 */
  --on-primary: 255 255 255;
  --primary-container: 255 224 217;
  --on-primary-container: 124 20 5;
  --background: 243 242 242;     /* #f3f2f2 */
  --surface: 250 249 249;
  --surface-container-low: 234 233 233;
  --surface-container-high: 226 224 224;
  --on-surface: 32 30 29;        /* #201e1d */
  --on-surface-variant: 96 93 93;
  --outline-variant: 215 211 211;
  --inverse-surface: 32 30 29;
  --inverse-on-surface: 243 242 242;
  --st-ok: 44 122 75;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-float: 0 18px 50px -12px rgb(var(--primary) / .18), 0 4px 14px -6px rgb(32 30 29 / .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: rgb(var(--on-surface));
  background: rgb(var(--background)); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: rgb(var(--primary)); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
p { margin: 0; }
::selection { background: rgb(var(--primary) / .25); }
:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 3px; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Marca ───────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--on-surface)); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.mark { width: 30px; height: 30px; display: grid; place-items: center; background: rgb(var(--primary)); color: #fff; font-weight: 800; font-size: 14px; border-radius: 9px; }

/* ── Cabecera flotante en píldora (Nui) ──────────────────────────────────── */
.header { position: fixed; top: 16px; inset-inline: 0; z-index: 50; padding-inline: 24px; }
.header-bar {
  height: 64px; max-width: var(--max); margin-inline: auto; padding: 0 10px 0 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 24px;
  background: rgb(var(--surface) / .72); border: 1px solid rgb(var(--outline-variant));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  transition: box-shadow .25s ease;
}
.header.scrolled .header-bar { box-shadow: var(--shadow-float); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { color: rgb(var(--on-surface-variant)); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.nav a:hover, .nav a.active { color: rgb(var(--on-surface)); background: rgb(var(--surface-container-high) / .7); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }

.lang { display: inline-flex; align-items: center; border-radius: 999px; background: rgb(var(--surface-container-high) / .7); padding: 4px; font-size: 12px; font-weight: 700; }
.lang a { padding: 4px 10px; border-radius: 999px; color: rgb(var(--on-surface-variant)); text-decoration: none; }
.lang a[aria-pressed="true"] { background: rgb(var(--primary)); color: rgb(var(--on-primary)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font: 700 15px/1 var(--font); text-decoration: none; border-radius: 999px; padding: 13px 22px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .15s ease, box-shadow .2s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: rgb(var(--primary)); color: rgb(var(--on-primary)); box-shadow: 0 10px 24px -10px rgb(var(--primary) / .6); }
.btn-primary:hover { background: rgb(221 43 15); color: #fff; }
.btn-outline { background: rgb(var(--surface)); color: rgb(var(--on-surface)); border-color: rgb(var(--outline-variant)); }
.btn-outline:hover { background: rgb(var(--surface-container-high)); }
.btn-enter { color: rgb(var(--primary)); background: rgb(var(--surface)); border-color: rgb(var(--outline-variant)); padding: 10px 20px; font-size: 14px; }
.btn-enter:hover { background: rgb(var(--surface-container-high)); }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-ink { background: rgb(var(--inverse-surface)); color: rgb(var(--inverse-on-surface)); }
.btn-ink:hover { background: #000; color: #fff; }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(var(--outline-variant)); background: rgb(var(--surface)); color: rgb(var(--on-surface)); place-items: center; cursor: pointer; }

/* ── Portada ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, rgb(var(--primary) / .14), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--outline-variant)); color: rgb(var(--on-primary-container));
  font-size: 13px; font-weight: 600;
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: rgb(var(--primary)); animation: pulse 1.6s ease-in-out infinite; }
.hero h1 { font-size: clamp(48px, 6.2vw, 88px); margin: 22px 0 22px; letter-spacing: -.04em; line-height: .98; }
.hero h1 em { font-style: normal; color: rgb(var(--primary)); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: rgb(var(--on-surface-variant)); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: rgb(var(--on-surface-variant)); }
.trust .ic { color: rgb(var(--st-ok)); width: 18px; height: 18px; }

.hero-video { position: relative; border-radius: 22px; overflow: hidden; background: #000;
  border: 1px solid rgb(var(--outline-variant)); box-shadow: var(--shadow-float); aspect-ratio: 16 / 9; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; }
.browser { border-radius: 18px; background: rgb(var(--surface)); border: 1px solid rgb(var(--outline-variant)); box-shadow: var(--shadow-float); overflow: hidden; }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgb(var(--outline-variant)); background: rgb(var(--surface-container-low)); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--outline-variant)); }
.browser-bar span { margin-left: 10px; font-size: 12px; color: rgb(var(--on-surface-variant)); background: rgb(var(--surface)); border-radius: 999px; padding: 3px 12px; }
.float-card {
  position: absolute; left: -7%; bottom: -9%; width: min(360px, 62%); padding: 16px 18px; border-radius: 22px;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--outline-variant)); box-shadow: var(--shadow-float);
  display: flex; gap: 14px; align-items: center;
}
.tile { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: rgb(var(--primary)); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -.03em; border-radius: 12px; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--on-surface-variant)); }
.kicker-live { color: rgb(var(--primary)); display: inline-flex; align-items: center; gap: 6px; }
.kicker-live::before { content: ''; width: 7px; height: 7px; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.float-card strong { display: block; font-size: 15px; line-height: 1.25; margin-top: 3px; }
.float-card small { display: block; color: rgb(var(--on-surface-variant)); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; color: rgb(var(--primary)); }
.wave i { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; animation: wave .8s ease-in-out infinite alternate; }
.wave i:nth-child(2) { animation-duration: .95s; animation-delay: -.1s; } .wave i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.2s; }
.wave i:nth-child(4) { animation-duration: .75s; animation-delay: -.3s; } .wave i:nth-child(5) { animation-duration: 1.2s; animation-delay: -.4s; }

/* ── Franja de cifras ────────────────────────────────────────────────────── */
.strip { border-block: 1px solid rgb(var(--outline-variant)); background: rgb(var(--surface)); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 28px 24px; border-left: 1px solid rgb(var(--outline-variant)); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.strip-item span { display: block; margin-top: 8px; font-size: 14px; color: rgb(var(--on-surface-variant)); }

/* ── Secciones ───────────────────────────────────────────────────────────── */
.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 60px); }
.section-head-stack { grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: center; text-align: center; }
.section-head-stack p { max-width: 46em; text-wrap: balance; }
.section-head h2 em { font-style: normal; color: rgb(var(--primary)); }
.section-head p { color: rgb(var(--on-surface-variant)); font-size: 18px; }
.section-alt { background: rgb(var(--surface)); border-block: 1px solid rgb(var(--outline-variant)); }
.section-dark { background: rgb(var(--inverse-surface)); color: rgb(var(--inverse-on-surface)); }
.section-dark .section-head p, .section-dark .card p, .section-dark .kicker { color: rgb(var(--inverse-on-surface) / .7); }

/* Bloque de función con captura */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(30px, 3vw, 42px); margin: 14px 0 16px; }
.feature p { color: rgb(var(--on-surface-variant)); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticks li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 9px; background: rgb(var(--primary)); border-radius: 2px; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid rgb(var(--outline-variant)); box-shadow: var(--shadow-float); background: rgb(var(--surface)); }

/* Tarjetas de funciones */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border-radius: 28px; background: rgb(var(--surface)); border: 1px solid rgb(var(--outline-variant)); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.card .num { font-size: 13px; font-weight: 700; color: rgb(var(--primary)); font-variant-numeric: tabular-nums; }
.card .ic-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgb(var(--primary) / .1); color: rgb(var(--primary)); margin-bottom: 8px; }
.card .ic-box .ic { width: 24px; height: 24px; }
.card h4 { font-size: 21px; letter-spacing: -.015em; }
.card p { color: rgb(var(--on-surface-variant)); font-size: 15.5px; }
.section-dark .card { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .12); }
.section-dark .card .ic-box { background: rgb(var(--primary) / .2); color: rgb(255 120 96); }

/* Galería de capturas con pestañas */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: rgb(var(--surface-container-high) / .7); margin-bottom: 28px; }
.tabs-center { display: flex; justify-content: center; width: fit-content; max-width: 100%; margin-inline: auto; }
.tabs button { border: 0; background: transparent; color: rgb(var(--on-surface-variant)); font: 700 14px/1 var(--font); padding: 11px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: rgb(var(--surface)); color: rgb(var(--on-surface)); box-shadow: 0 2px 8px rgb(32 30 29 / .1); }
.gallery { position: relative; }
.gallery figure { margin: 0; display: none; }
.gallery figure.active { display: block; animation: fade .35s ease; }
.gallery figcaption { margin-top: 16px; color: rgb(var(--on-surface-variant)); font-size: 15px; text-align: center; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { border-radius: 28px; padding: 32px; background: rgb(var(--surface)); border: 1px solid rgb(var(--outline-variant)); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-size: 56px; font-weight: 800; letter-spacing: -.04em; color: rgb(var(--primary)); line-height: 1; margin-bottom: 18px; }
.step h4 { font-size: 22px; margin-bottom: 10px; }
.step p { color: rgb(var(--on-surface-variant)); font-size: 15.5px; }
.step ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.step li { display: flex; gap: 8px; }
.step li .ic { width: 18px; height: 18px; color: rgb(var(--st-ok)); margin-top: 2px; }

/* Requisitos */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 28px; overflow: hidden; border: 1px solid rgb(var(--outline-variant)); background: rgb(var(--outline-variant)); gap: 1px; }
.spec { background: rgb(var(--surface)); padding: 24px 26px; }
.spec dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--on-surface-variant)); }
.spec dd { margin: 8px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

/* Empezar + contacto */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel { border-radius: 32px; padding: 40px; background: rgb(var(--surface)); border: 1px solid rgb(var(--outline-variant)); }
.panel-accent { background: rgb(var(--primary)); color: #fff; border-color: transparent; position: relative; overflow: hidden; }
.panel-accent h3 { font-size: clamp(34px, 3.6vw, 52px); }
.panel-accent p { color: rgb(255 255 255 / .86); margin-top: 14px; font-size: 18px; }
.panel-accent .btn-outline { background: #fff; color: rgb(var(--primary)); border-color: #fff; }
.panel-accent .wave { color: #fff; position: absolute; right: 36px; bottom: 36px; height: 64px; gap: 5px; }
.panel-accent .wave i { width: 6px; }
.panel h3 { font-size: 32px; }
.contact-meta { display: grid; gap: 10px; margin: 18px 0 26px; color: rgb(var(--on-surface-variant)); font-size: 15px; }
.contact-meta a { font-weight: 700; }
.contact-meta div { display: flex; gap: 10px; align-items: center; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: rgb(var(--on-surface-variant)); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: rgb(var(--on-surface)); background: rgb(var(--surface-container-low));
  border: 1px solid rgb(var(--outline-variant)); border-radius: 16px; padding: 12px 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: rgb(var(--primary)); box-shadow: 0 0 0 3px rgb(var(--primary) / .18); }
.form-notice { font-size: 14px; min-height: 1em; }
.form-notice.success { color: rgb(var(--st-ok)); }
.form-notice.error { color: rgb(var(--primary)); }
.form small { color: rgb(var(--on-surface-variant)); font-size: 12.5px; }

/* Pie */
.footer { padding: 56px 0 40px; border-top: 1px solid rgb(var(--outline-variant)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer p { color: rgb(var(--on-surface-variant)); font-size: 15px; margin-top: 12px; max-width: 28em; }
.footer h5 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--on-surface-variant)); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: rgb(var(--on-surface)); text-decoration: none; font-size: 15px; }
.footer ul a:hover { color: rgb(var(--primary)); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgb(var(--outline-variant)); font-size: 13px; color: rgb(var(--on-surface-variant)); }
.nuvola-logo { height: 18px; width: auto; opacity: .7; display: block; }

/* Animaciones */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes wave { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-bar { gap: 12px; }
  .header.open .nav { display: flex; position: absolute; top: 74px; left: 24px; right: 24px; flex-direction: column; padding: 10px; border-radius: 28px; background: rgb(var(--surface)); border: 1px solid rgb(var(--outline-variant)); box-shadow: var(--shadow-float); }
  .header.open .nav a { padding: 14px 16px; font-size: 17px; }
  .burger { display: grid; }
  .hero-grid, .feature, .section-head, .start { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
  .hero { padding-top: 130px; }
  .stage { margin: 0 0 60px; }
  .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header { padding-inline: 12px; top: 10px; }
  .header-bar { padding-left: 16px; height: 58px; }
  .header-actions .btn-enter span { display: none; }
  .header-actions .btn-enter { padding: 10px 12px; }
  .hero { padding: 108px 0 64px; }
  .stage { margin: 0 0 40px; }
  .float-card { display: none; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item { padding: 20px 16px; border-left: 0; border-top: 1px solid rgb(var(--outline-variant)); }
  .strip-item:nth-child(-n+2) { border-top: 0; }
  .strip-item:first-child { padding-left: 16px; }
  .section { padding: 72px 0; }
  .cards, .steps, .specs,     .form-row { grid-template-columns: 1fr; }
  .panel { padding: 28px 22px; border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabs { border-radius: 22px; }
}

/* ── Página legal ─────────────────────────────────────────────────────────── */
.legal { padding-top: 150px; }
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.legal-head { grid-column: 1 / -1; max-width: 50em; margin-bottom: 24px; }
.legal-head h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.04em; line-height: 1; margin: 14px 0 18px; }
.legal-updated { font-size: 14px; color: rgb(var(--on-surface-variant)); margin-top: 12px; }
.legal-toc { position: sticky; top: 110px; }
.legal-toc h5 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--on-surface-variant)); }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 15px; }
.legal-toc a { color: rgb(var(--on-surface)); text-decoration: none; }
.legal-toc a:hover { color: rgb(var(--primary)); }
.legal-body { max-width: 50em; }
.legal-body section { padding: 8px 0 28px; border-bottom: 1px solid rgb(var(--outline-variant)); margin-bottom: 28px; scroll-margin-top: 110px; }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 14px; }
.legal-body h3 { font-size: 17px; margin: 22px 0 10px; }
.legal-body p, .legal-body li, .legal-body dd { color: rgb(var(--on-surface-variant)); font-size: 16px; }
.legal-body strong { color: rgb(var(--on-surface)); }
.legal-body a { color: rgb(var(--primary)); }
.legal-body ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body code { font-size: 14px; background: rgb(var(--surface-container-high)); padding: 1px 6px; border-radius: 6px; color: rgb(var(--on-surface)); }
.legal-dl { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 10px 20px; margin: 16px 0; }
.legal-dl dt { font-weight: 700; font-size: 15px; color: rgb(var(--on-surface)); }
.legal-dl dd { margin: 0; }
.legal-table { margin-bottom: 16px; overflow-x: auto; border: 1px solid rgb(var(--outline-variant)); border-radius: 14px; background: rgb(var(--surface)); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgb(var(--outline-variant)); }
.legal-table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--on-surface-variant)); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td a { color: rgb(var(--on-surface)); font-weight: 600; text-decoration: none; }
.legal-table td a:hover { color: rgb(var(--primary)); }
@media (max-width: 1080px) { .legal-wrap { grid-template-columns: 1fr; } .legal-toc { position: static; } }

.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .form-recaptcha { display: block; margin-top: 4px; }
.form .form-recaptcha a { color: inherit; }
