/* =========================================================================
   MySaaSLux — Legal pages (dark tech). Reestiliza el marcado legal existente
   sobre el design system v2. NO cambia el texto jurídico, solo el chrome/estilo.
   Se carga tras tokens.css + site.css. Los nombres de clase son los de las
   páginas legales heredadas (topbar, legal-section, sub, data-block, …).
   ========================================================================= */

.legal-body { line-height: 1.75; padding-top: var(--nav-h); }
main { max-width: 880px; margin: 0 auto; padding: 52px 24px 96px; }

/* ---- Topbar ---- */
.topbar { border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; max-width: 880px; margin: 0 auto; }
.logo-link { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-link svg { border-radius: 7px; }
.logo-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text); }
.logo-dot { color: var(--lima); }
.back-link { font-size: .82rem; font-weight: 600; color: var(--text-2); text-decoration: none; transition: color .15s; }
.back-link:hover { color: var(--text); }

/* ---- Language jump nav ---- */
.lang-nav { max-width: 880px; margin: 0 auto; padding: 24px 24px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.lang-nav a { font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 5px 13px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-2); transition: color .15s, border-color .15s, background .15s; }
.lang-nav a:hover { color: var(--text); border-color: var(--lima); background: rgba(174,246,57,.06); }

/* ---- Sections ---- */
.legal-section { margin-bottom: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; margin-bottom: 0; }
.section-lang-badge { display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0B0D10; background: var(--lima); padding: 4px 12px; border-radius: 100px; margin-bottom: 12px; }
.controlling-note { font-size: .78rem; color: var(--text-3); margin-bottom: 32px; font-style: italic; }

.section-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); margin-bottom: 36px; }
.part-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text); margin: 48px 0 20px; letter-spacing: -0.01em; }

.sub { margin-bottom: 30px; }
.sub-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.sub p { font-size: .93rem; color: var(--text); margin-bottom: 10px; }
.sub p:last-child { margin-bottom: 0; }
.sub a { color: var(--lima); font-weight: 500; text-decoration: none; word-break: break-word; }
.sub a:hover { text-decoration: underline; }
.sub ul { margin: 10px 0 10px 20px; }
.sub ul li { font-size: .93rem; color: var(--text); margin-bottom: 6px; }
.sub address { font-style: normal; line-height: 1.85; font-size: .93rem; color: var(--text); }

/* data / info block */
.data-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 16px 20px; font-size: .9rem; line-height: 1.9; color: var(--text); }
.data-block strong { color: var(--text); font-weight: 600; }

/* highlighted / warning note */
.highlight-box { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.34); border-radius: var(--radius-m); padding: 15px 18px; font-size: .9rem; color: #fcd34d; line-height: 1.65; }
.highlight-box strong { color: #fde68a; display: block; margin-bottom: 4px; }

/* literal legal clause quote (full border, no side stripe) */
.clause-literal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 14px 18px; margin: 12px 0; font-size: .9rem; color: var(--text-2); font-style: italic; line-height: 1.7; }

/* rights list (e.g. data-subject rights) */
.rights-list { margin: 12px 0 12px 4px; display: grid; gap: 8px; }
.rights-item { font-size: .92rem; color: var(--text); padding-left: 18px; position: relative; line-height: 1.6; }
.rights-item::before { content: "→"; position: absolute; left: 0; color: var(--lima); font-family: var(--font-mono); }

/* withdrawal / form template blocks */
.withdrawal-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px 24px; font-size: .9rem; line-height: 2; color: var(--text); }
.form-block { background: var(--surface); border: 1px dashed #3a414c; border-radius: var(--radius-m); padding: 18px 20px; margin-top: 12px; font-size: .9rem; line-height: 1.9; color: var(--text); }
.form-block p { margin-bottom: 6px; }

/* ---- Footer ---- */
.legal-footer { border-top: 1px solid var(--border); max-width: 880px; margin: 0 auto; padding: 36px 24px 56px; }
.legal-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.legal-footer-nav a { font-size: .82rem; color: var(--text-2); text-decoration: none; transition: color .15s; }
.legal-footer-nav a:hover { color: var(--lima); }
.legal-footer-nav a.active { color: var(--text); font-weight: 600; }
.footer-copy { font-size: .74rem; color: var(--text-3); line-height: 1.6; }

@media (max-width: 600px) {
  .topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .legal-footer-nav { gap: 14px; }
}
