/* ════════════════════════════════════════════
   APIBESAZ — Legal / secondary page layout
   ════════════════════════════════════════════ */
.legal-container{max-width:800px;margin:0 auto;padding:3.5rem 1.5rem 4rem}

.legal-header{margin-bottom:2.5rem}
.legal-header h1{font-size:clamp(2rem,5vw,2.8rem);font-weight:800;margin-bottom:.6rem}
.legal-updated{color:var(--muted);font-size:.9rem;display:flex;align-items:center;gap:.5rem}
.legal-intro{font-size:1.05rem;color:var(--text2);line-height:1.75;margin-bottom:2.5rem}

/* Table of contents */
.legal-toc{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:1.5rem 1.75rem;margin-bottom:3rem}
.legal-toc h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:1rem}
.legal-toc ol{margin-inline-start:1.3rem;margin-left:0;columns:2;column-gap:2.5rem}
.legal-toc li{margin-bottom:.55rem;font-size:.92rem;break-inside:avoid}
.legal-toc a{color:var(--text2);text-decoration:none;transition:color .2s}
.legal-toc a:hover{color:var(--primary-h)}

/* Sections */
.legal-section{margin-bottom:3rem;scroll-margin-top:90px}
.legal-section h2{font-size:1.35rem;font-weight:700;margin-bottom:1.1rem;display:flex;align-items:center;gap:.7rem}
.legal-section h2 .sec-num{flex-shrink:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:var(--primary-soft);color:var(--primary-h);border-radius:8px;font-size:.85rem;font-weight:800}
.legal-section p{color:var(--text2);line-height:1.75;margin-bottom:1rem}
.legal-section p:last-child{margin-bottom:0}
.legal-section strong{color:var(--text);font-weight:600}
.legal-section ul,.legal-section ol{margin:0 0 1rem 1.5rem;color:var(--text2);line-height:1.75}
.legal-section li{margin-bottom:.5rem}

.legal-callout{background:var(--primary-soft);border:1px solid rgba(22,184,166,.3);border-radius:var(--r-sm);padding:1.1rem 1.3rem;margin:1.25rem 0;color:var(--text2);font-size:.95rem;line-height:1.7}
.legal-callout strong{color:var(--primary-h)}

.legal-footer-note{border-top:1px solid var(--border);padding-top:2rem;margin-top:3rem;color:var(--muted);font-size:.88rem;text-align:center}
.legal-footer-note a{color:var(--primary-h);text-decoration:none}

@media(max-width:640px){
  .legal-container{padding:2.5rem 1.25rem 3rem}
  .legal-toc ol{columns:1}
  .legal-section h2{font-size:1.2rem}
}
@media(max-width:520px){
  .legal-container{padding-left:.85rem;padding-right:.85rem}
  .legal-toc{padding:1rem}
  .legal-section h2{align-items:flex-start}
  .legal-section h2 .sec-num{margin-top:.1rem}
}


/* Operator details must remain readable in both LTR and RTL layouts. */
