:root{--legal-red:#e3032e;--legal-ink:#111317;--legal-muted:#626770;--legal-line:#dfe1e5;--legal-bg:#eef0f2}
*{box-sizing:border-box}
body.legal-page{margin:0;background:var(--legal-bg);color:var(--legal-ink);font-family:Inter,Arial,sans-serif}
.legal-header{max-width:1480px;margin:18px auto 0;min-height:84px;padding:18px 30px;background:#0f1114;border-radius:12px;display:flex;align-items:center;justify-content:space-between}
.legal-header img{display:block;width:225px;height:46px;object-fit:contain}
.legal-header a{color:#fff;text-decoration:none;font-size:13px;font-weight:800}
.legal-wrap{max-width:1480px;margin:18px auto 42px;background:#fff;border-radius:14px;overflow:hidden}
.legal-hero{padding:64px clamp(28px,6vw,90px);background:linear-gradient(120deg,#101216 0 58%,#260911);color:#fff}
.legal-eyebrow{color:var(--legal-red);font-size:12px;font-weight:900;letter-spacing:.18em}
.legal-hero h1{max-width:900px;margin:14px 0 18px;font:700 clamp(46px,7vw,84px)/.92 "Barlow Condensed",Arial,sans-serif}
.legal-hero p{max-width:850px;color:#c8cbd1;font-size:16px;line-height:1.7}
.legal-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}
.legal-meta span{padding:9px 12px;border:1px solid #ffffff28;border-radius:999px;font-size:11px}
.legal-content{display:grid;grid-template-columns:280px minmax(0,1fr);gap:54px;padding:52px clamp(28px,6vw,90px) 76px}
.legal-index{position:sticky;top:24px;align-self:start;border:1px solid var(--legal-line);border-radius:10px;padding:20px}
.legal-index b{display:block;margin-bottom:12px;font-size:12px;letter-spacing:.12em;color:var(--legal-red)}
.legal-index a{display:block;padding:9px 0;color:#333;text-decoration:none;border-bottom:1px solid #eee;font-size:12px}
.legal-article section{scroll-margin-top:25px;padding:0 0 30px;margin:0 0 30px;border-bottom:1px solid var(--legal-line)}
.legal-article h2{font:700 31px/1 "Barlow Condensed",Arial,sans-serif;margin:0 0 14px}
.legal-article h3{font-size:16px;margin:22px 0 8px}
.legal-article p,.legal-article li{font-size:14px;line-height:1.75;color:#42474f}
.legal-article a{color:#b90027;font-weight:700}
.legal-article table{width:100%;border-collapse:collapse;margin:16px 0;font-size:13px}
.legal-article th,.legal-article td{padding:14px;border:1px solid var(--legal-line);vertical-align:top;text-align:left}
.legal-article th{background:#f4f5f6}
.legal-note{padding:18px 20px;border-left:4px solid var(--legal-red);background:#f7f7f8;border-radius:0 8px 8px 0}
.legal-footer{max-width:1480px;margin:0 auto 35px;background:#101216;color:#fff;border-radius:12px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.legal-footer img{width:200px;height:42px;object-fit:contain}
.legal-footer nav{display:flex;gap:18px;flex-wrap:wrap}
.legal-footer a{color:#c8cbd1;text-decoration:none;font-size:11px}
.legal-links{display:flex!important;gap:14px!important;flex-wrap:wrap!important;align-items:center!important;margin-top:14px!important}
.legal-links a,.legal-links button{color:inherit!important;font:600 10px Inter,Arial,sans-serif!important;text-decoration:none!important;background:none!important;border:0!important;padding:0!important;cursor:pointer!important}
.privacy-consent{display:flex;align-items:flex-start;gap:9px;margin:12px 0;color:inherit;font:500 10px/1.5 Inter,Arial,sans-serif}
.privacy-consent input{width:16px;height:16px;flex:0 0 auto;accent-color:var(--legal-red)}
.privacy-consent a{color:inherit;text-decoration:underline;font-weight:800}
.cookie-banner{position:fixed;z-index:99999;left:18px;right:18px;bottom:18px;max-width:1180px;margin:auto;background:#111317;color:#fff;border:1px solid #ffffff25;border-radius:12px;box-shadow:0 30px 90px #0008;padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center}
.cookie-banner[hidden],.cookie-settings[hidden]{display:none}
.cookie-banner h2{font:700 25px "Barlow Condensed",Arial,sans-serif;margin:0 0 5px}
.cookie-banner p{margin:0;color:#c7cad0;font-size:11px;line-height:1.65;max-width:680px}
.cookie-banner p a{color:#fff}
.cookie-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cookie-actions button{min-height:43px;padding:0 16px;border-radius:7px;border:1px solid #ffffff40;background:transparent;color:#fff;font-size:10px;font-weight:900;cursor:pointer}
.cookie-actions .cookie-primary{background:var(--legal-red);border-color:var(--legal-red)}
.cookie-settings{position:fixed;z-index:100000;inset:0;background:#0009;place-items:center;padding:20px}
.cookie-settings:not([hidden]){display:grid}
.cookie-dialog{width:min(660px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:13px;padding:28px;color:#111317}
.cookie-dialog header{display:flex;justify-content:space-between;gap:20px}.cookie-dialog h2{font:700 32px "Barlow Condensed";margin:0}.cookie-close{border:0;background:#eee;width:34px;height:34px;border-radius:50%;cursor:pointer}
.cookie-dialog>p{font-size:12px;color:#666;line-height:1.65}
.cookie-option{display:grid;grid-template-columns:1fr auto;gap:8px;padding:16px 0;border-top:1px solid #ddd}
.cookie-option b,.cookie-option small{display:block}.cookie-option small{margin-top:5px;color:#777;font-size:10px;line-height:1.5}
.cookie-option input{width:38px;height:20px;accent-color:var(--legal-red)}
.cookie-dialog .cookie-actions{margin-top:18px}.cookie-dialog .cookie-actions button{color:#111;border-color:#bbb}.cookie-dialog .cookie-actions .cookie-primary{color:#fff}
.external-consent{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:25px;background:#f4f5f7;z-index:3}
.external-consent b{display:block;font:700 24px "Barlow Condensed";margin-bottom:6px}.external-consent p{max-width:460px;font-size:11px;color:#666}.external-consent button{border:0;background:var(--legal-red);color:#fff;padding:12px 17px;border-radius:6px;font-size:10px;font-weight:900;cursor:pointer}
@media(max-width:800px){.legal-header,.legal-wrap,.legal-footer{margin-left:10px;margin-right:10px}.legal-header img{width:175px}.legal-content{grid-template-columns:1fr;gap:25px}.legal-index{position:static}.legal-footer{align-items:flex-start;flex-direction:column}.cookie-banner{grid-template-columns:1fr}.cookie-actions{justify-content:flex-start}}

/* Odoo's global nav display:flex must not override the legal contents index.
   Grid items must also be allowed to shrink inside their own tracks. */
body.tecnomocion-legal-page .legal-content {
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  align-items:start;
}
body.tecnomocion-legal-page .legal-content > nav.legal-index {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  grid-column:1;
  box-sizing:border-box;
}
body.tecnomocion-legal-page .legal-content > nav.legal-index > b,
body.tecnomocion-legal-page .legal-content > nav.legal-index > a {
  display:block;
  width:100%;
  white-space:normal;
}
body.tecnomocion-legal-page .legal-content > .legal-article {
  grid-column:2;
  min-width:0;
}
@media (max-width:800px) {
  body.tecnomocion-legal-page .legal-content {
    grid-template-columns:minmax(0,1fr);
    gap:25px;
  }
  body.tecnomocion-legal-page .legal-content > nav.legal-index,
  body.tecnomocion-legal-page .legal-content > .legal-article {
    grid-column:1;
  }
  body.tecnomocion-legal-page .legal-content > nav.legal-index {
    position:static;
  }
}
