
/* =========================================================
   LEGAL PAGES — Credanta
   ========================================================= */
.legal-page{background:#f5f6f2}
.legal-hero{
  position:relative;
  overflow:hidden;
  padding:72px 0 64px;
  background:
    radial-gradient(circle at 82% 12%,rgba(255,107,47,.14),transparent 26%),
    linear-gradient(180deg,#f7f8f5 0%,#eef2f2 100%);
  border-bottom:1px solid rgba(16,45,97,.07);
}
.legal-hero:after{
  content:"";
  position:absolute;
  right:-70px;
  bottom:-150px;
  width:380px;
  height:380px;
  border-radius:50%;
  border:1px solid rgba(255,107,47,.16);
  box-shadow:0 0 0 54px rgba(255,107,47,.025),0 0 0 108px rgba(23,54,109,.018);
  pointer-events:none;
}
.legal-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:70px;
  align-items:end;
}
.legal-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 18px;
  color:var(--navy);
  font-size:10px;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.legal-eyebrow:before{
  content:"";
  width:22px;
  height:2px;
  border-radius:999px;
  background:var(--orange);
}
.legal-hero h1{
  max-width:11ch;
  font-size:clamp(50px,5.25vw,76px);
  line-height:.96;
  letter-spacing:-.06em;
}
.legal-hero-copy>p:last-child{
  max-width:58ch;
  margin:24px 0 0;
  color:#667892;
  font-size:14px;
  line-height:1.7;
}
.legal-meta-card{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:18px;
  padding:26px;
  border:1px solid rgba(16,45,97,.08);
  border-radius:26px;
  background:rgba(255,255,255,.8);
  box-shadow:0 22px 54px rgba(8,31,70,.07);
  backdrop-filter:blur(14px);
}
.legal-meta-card:after{
  content:"";
  position:absolute;
  right:-55px;
  top:-55px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,107,47,.14),rgba(255,107,47,0) 68%);
}
.legal-meta-item{position:relative;z-index:1;display:grid;gap:4px}
.legal-meta-item+ .legal-meta-item{padding-top:16px;border-top:1px solid rgba(16,45,97,.08)}
.legal-meta-item span{color:#8a98ab;font-size:9px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.legal-meta-item strong,.legal-meta-item a{color:var(--navy);font-size:13px;line-height:1.5}
.legal-meta-item a{text-decoration:underline;text-underline-offset:3px}

.legal-main{padding:70px 0 110px}
.legal-layout{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:56px;
  align-items:start;
}
.legal-toc{
  position:sticky;
  top:98px;
  padding:20px 18px;
  border:1px solid rgba(16,45,97,.07);
  border-radius:20px;
  background:rgba(255,255,255,.76);
}
.legal-toc p{margin:0 0 13px;color:#8795a8;font-size:9px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
.legal-toc nav{display:grid;gap:4px}
.legal-toc a{
  display:block;
  padding:9px 10px;
  border-radius:10px;
  color:#61738e;
  font-size:11px;
  font-weight:680;
  line-height:1.35;
  transition:background .2s ease,color .2s ease,transform .2s var(--ease);
}
.legal-toc a:hover{background:#f1f4f3;color:var(--navy);transform:translateX(2px)}
.legal-content{
  min-width:0;
  padding:44px 48px 50px;
  border:1px solid rgba(16,45,97,.07);
  border-radius:30px;
  background:#fff;
  box-shadow:0 20px 58px rgba(8,31,70,.045);
}
.legal-intro{
  margin:0 0 42px;
  padding:0 0 34px;
  border-bottom:1px solid rgba(16,45,97,.09);
  color:#4f6380;
  font-size:14px;
  line-height:1.78;
}
.legal-section{scroll-margin-top:106px}
.legal-section+ .legal-section{margin-top:42px;padding-top:42px;border-top:1px solid rgba(16,45,97,.09)}
.legal-section h2{
  max-width:24ch;
  margin:0 0 18px;
  color:var(--navy-deep);
  font-size:clamp(25px,2.1vw,32px);
  line-height:1.08;
  letter-spacing:-.045em;
}
.legal-section h3{
  margin:27px 0 11px;
  color:var(--navy);
  font-size:16px;
  line-height:1.3;
  letter-spacing:-.02em;
}
.legal-section p,
.legal-section li{
  color:#5d6f89;
  font-size:13px;
  line-height:1.78;
}
.legal-section p{margin:0 0 16px}
.legal-section p:last-child{margin-bottom:0}
.legal-section ul{display:grid;gap:8px;margin:12px 0 20px;padding-left:20px}
.legal-section li::marker{color:var(--orange)}
.legal-section a{color:var(--navy);font-weight:720;text-decoration:underline;text-decoration-color:rgba(255,107,47,.45);text-underline-offset:3px}
.legal-highlight{
  margin:24px 0 4px;
  padding:20px 22px;
  border-left:3px solid var(--orange);
  border-radius:0 16px 16px 0;
  background:#fff6f1;
}
.legal-highlight p{color:#4e607a}
.legal-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.legal-chip{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid rgba(16,45,97,.08);border-radius:999px;background:#f3f6f5;color:var(--navy);font-size:10px;font-weight:760}
.legal-browser-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 0;padding:0;list-style:none}
.legal-browser-list li{margin:0;padding:0}
.legal-browser-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid rgba(16,45,97,.08);border-radius:13px;background:#f8faf9;text-decoration:none;transition:transform .2s var(--ease),border-color .2s ease,background .2s ease}
.legal-browser-list a:after{content:'↗';color:var(--orange);font-size:13px}
.legal-browser-list a:hover{transform:translateY(-2px);border-color:rgba(255,107,47,.28);background:#fff}
.legal-related{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:34px;
  padding:20px 22px;
  border-radius:18px;
  background:var(--navy-deep);
  color:#fff;
}
.legal-related p{margin:0;color:#d5dfec;font-size:11px}
.legal-related a{flex:0 0 auto;color:#fff;font-size:11px;text-decoration:underline;text-underline-offset:3px}

@media(max-width:960px){
  .legal-hero{padding:54px 0 52px}.legal-hero-grid{grid-template-columns:1fr;gap:34px;align-items:start}.legal-hero h1{max-width:13ch;font-size:clamp(48px,8vw,68px)}.legal-meta-card{max-width:700px}
  .legal-main{padding:56px 0 88px}.legal-layout{grid-template-columns:1fr;gap:24px}.legal-toc{position:relative;top:auto;overflow-x:auto;padding:15px}.legal-toc p{margin-bottom:9px}.legal-toc nav{display:flex;gap:6px;width:max-content}.legal-toc a{white-space:nowrap;background:#f3f5f4}.legal-content{padding:38px 36px 42px}
}
@media(max-width:680px){
  .legal-hero{padding:40px 0 42px}.legal-hero:after{right:-170px;bottom:-190px}.legal-hero-grid{gap:28px}.legal-eyebrow{margin-bottom:14px;font-size:8.5px}.legal-hero h1{font-size:clamp(39px,11.8vw,52px);line-height:.98}.legal-hero-copy>p:last-child{margin-top:18px;font-size:12px;line-height:1.66}.legal-meta-card{padding:20px;border-radius:20px}.legal-meta-item strong,.legal-meta-item a{font-size:11.5px}
  .legal-main{padding:38px 0 68px}.legal-layout{gap:18px}.legal-toc{border-radius:16px}.legal-content{padding:27px 20px 32px;border-radius:22px}.legal-intro{margin-bottom:31px;padding-bottom:27px;font-size:12.2px;line-height:1.72}.legal-section+ .legal-section{margin-top:32px;padding-top:32px}.legal-section h2{font-size:26px;margin-bottom:15px}.legal-section h3{margin-top:23px;font-size:14.5px}.legal-section p,.legal-section li{font-size:11.7px;line-height:1.72}.legal-section ul{padding-left:18px}.legal-highlight{padding:17px 17px}.legal-browser-list{grid-template-columns:1fr}.legal-related{align-items:flex-start;flex-direction:column;gap:12px;padding:17px 18px}
}
@media(max-width:390px){
  .legal-content{padding-inline:17px}.legal-meta-card{padding:18px}.legal-section h2{font-size:24px}.legal-section p,.legal-section li{font-size:11.4px}.legal-toc{margin-inline:-2px}
}


/* V29 — shared dense-document accessibility and US disclosure support */
@media(min-width:961px){
  .legal-toc{max-height:calc(100vh - 122px);overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(16,45,97,.2) transparent}
}
.legal-content ol{display:grid;gap:8px;margin:12px 0 20px;padding-left:22px}
.legal-content ol li::marker{color:var(--orange);font-weight:800}
.legal-content blockquote{margin:22px 0;padding:18px 20px;border-left:3px solid var(--orange);border-radius:0 15px 15px 0;background:#f7f8f6;color:#526781}
.legal-warning{margin:22px 0!important;padding:18px 20px;border:1px solid rgba(195,74,26,.17);border-radius:15px;background:#fff3ed;color:#344b68!important;font-size:11.5px!important;font-weight:730;letter-spacing:.005em}
.legal-content table{width:100%;border-collapse:separate;border-spacing:0;margin:18px 0 24px;overflow:hidden;border:1px solid rgba(16,45,97,.1);border-radius:14px;font-size:11.5px}
.legal-content th,.legal-content td{padding:12px 13px;text-align:left;vertical-align:top;border-bottom:1px solid rgba(16,45,97,.08)}
.legal-content th{background:#f2f5f4;color:var(--navy);font-size:10px;letter-spacing:.02em}
.legal-content tr:last-child td{border-bottom:0}
.legal-content code{padding:2px 5px;border-radius:5px;background:#f1f3f2;font-size:.9em}
.legal-section h2{overflow-wrap:anywhere}
.legal-section h3{scroll-margin-top:106px}
@media(max-width:680px){
  .legal-warning{padding:15px 16px;font-size:10.6px!important;line-height:1.65!important}
  .legal-content table{display:block;overflow-x:auto;white-space:normal}
}

/* V185 responsive hardening for long legal labels, URLs and horizontal TOCs. */
.legal-layout>*{min-width:0}
.legal-toc{min-width:0;max-width:100%}
.legal-content a,.legal-content p,.legal-content li,.legal-meta-card a,.legal-meta-card strong{overflow-wrap:anywhere;word-break:break-word}
@media (max-width:900px){
  .legal-layout{min-width:0}
  .legal-toc{width:100%;max-width:100%}
}
/* Credanta US legal pages: keep ES design with long U.S. legal terms. */
.legal-page .legal-layout,.legal-page .legal-hero-grid,.legal-page .legal-content,.legal-page .legal-meta-card{min-width:0}
.legal-page .legal-section :is(p,li,a),.legal-page .legal-toc a,.legal-page .legal-meta-item :is(a,strong){overflow-wrap:anywhere}
.legal-page .legal-content .legal-related a{overflow-wrap:break-word}
.legal-page .legal-review-note{margin:0 auto;padding:13px 17px;border-left:3px solid #d78549;background:#fff8ee;color:#564a36;border-radius:8px;max-width:1160px;font-size:12px;line-height:1.6}
.legal-page .legal-review-note strong{color:#102d61}
.legal-page .legal-content .legal-related a:focus-visible,.legal-page .legal-toc a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
@media(max-width:767px){.legal-page .legal-hero h1{font-size:clamp(38px,10vw,55px);overflow-wrap:break-word}.legal-page .legal-content{min-width:0}.legal-page .legal-meta-card{min-width:0}}/* CREDANTA LEGAL LAYOUT AUDIT US v48
   Scoped to legal pages only. Corrects the later global UI's 800px
   max-width and second padding on .legal-layout, and restores the SVG footer logo.
   Does not modify the Home, About, Contact or Guides layouts. */
.legal-page .legal-main {
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:70px 0 104px!important;
}
.legal-page .legal-main > .shell.legal-layout {
  display:grid!important;
  width:min(var(--shell),calc(100% - 56px))!important;
  max-width:var(--shell)!important;
  margin-inline:auto!important;
  padding:0!important;
  grid-template-columns:minmax(0,250px) minmax(0,1fr)!important;
  gap:56px!important;
  align-items:start!important;
}
.legal-page .legal-main .legal-content {
  min-width:0!important;
  max-width:none!important;
  width:100%!important;
}
.legal-page .legal-main .legal-toc {
  min-width:0!important;
  max-width:100%!important;
}
.legal-page .footer-brand-block > a img {
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:222px!important;
}
.legal-page .footer-brand-block > a::before,
.legal-page .footer-brand-block > a::after {
  content:none!important;
  display:none!important;
}
@media(max-width:960px){
  .legal-page .legal-main { padding:52px 0 82px!important; }
  .legal-page .legal-main > .shell.legal-layout {
    width:calc(100% - 40px)!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:24px!important;
  }
  .legal-page .legal-main .legal-toc { position:relative!important;top:auto!important; }
}
@media(max-width:680px){
  .legal-page .legal-main { padding:38px 0 68px!important; }
  .legal-page .legal-main > .shell.legal-layout {width:calc(100% - 28px)!important;gap:18px!important;}
  .legal-page .legal-main .legal-content {padding:27px 20px 32px!important;}
  .legal-page .footer-brand-block > a img {max-width:190px!important;}
}