/* ==========================================================
   nuoora – Terms and Privacy page layout
   ========================================================== */
.legal{padding:2.5rem 0 4rem}
.legal-inner{width:min(100% - 2rem, 68ch);margin-inline:auto}
/* inline-block, not flex: in a flex box the spaces around the word "nuoora" disappear */
.back{display:inline-block;line-height:44px;font-weight:700}
.legal h1{font-weight:500;font-size:clamp(1.9rem,1.3rem + 2.2vw,2.7rem);letter-spacing:-.025em;margin:1.25rem 0 .5rem}
:lang(bg) .legal h1{font-size:clamp(1.7rem,1.2rem + 1.9vw,2.4rem)}
.updated{color:var(--muted)}

.toc{margin:2rem 0 2.5rem;padding:1.25rem 1.5rem;border-radius:20px;background:var(--surface);border:1.5px solid var(--line)}
.toc h2{font-family:var(--body);font-weight:700;font-size:1rem;letter-spacing:0;line-height:1.3;margin-bottom:.5rem}
.toc ol{list-style:none;margin:0;padding:0;display:grid}
.toc li{display:flex;align-items:center;min-height:44px}
/* Balanced lines, so no single word is left alone on the last line of an entry */
.toc a{text-wrap:balance}

.legal-body h2{font-size:1.3rem;margin:2.5rem 0 .8rem;max-width:none}
:lang(bg) .legal-body h2{font-size:1.15rem}
.legal-body p{margin:0 0 1rem;line-height:1.7}
.legal-body .coming{color:var(--muted)}
.legal-body h3{font-size:1.15rem;line-height:1.35;margin:1.75rem 0 .5rem}
.legal-body ul,.legal-body ol{margin:0 0 1rem;padding-left:1.4rem;line-height:1.7}
.legal-body li+li{margin-top:.4rem}
.legal-body strong{font-weight:700}
.legal-body h2:first-child{margin-top:0}
.updated .ph,.legal-body .ph{overflow-wrap:anywhere}

/* Tables scroll inside their own box on small screens; the page never scrolls sideways */
.table-box{overflow-x:auto;border:1.5px solid var(--line);border-radius:16px;background:var(--surface);margin:0 0 1.25rem}
.table-box table{border-collapse:collapse;min-width:560px;width:100%;font-size:.97rem}
.table-box th,.table-box td{text-align:left;padding:.8rem 1rem;border-bottom:1px solid var(--line);vertical-align:top}
.table-box th{font-weight:700;background:var(--surface-2)}
.table-box tr:last-child td{border-bottom:0}
.back-end{margin-top:2.5rem}

/* Print: text only, black on white, with link addresses */
@media print{
  .site-header,.site-footer,.lang,.skip,.back{display:none !important}
  body{background:#fff;color:#000;font-size:11pt}
  .toc,.table-box{background:#fff;border-color:#999}
  .table-box{overflow:visible}
  .table-box th{background:#eee}
  a{color:#000;text-decoration:underline}
  .legal a[href]:not([href^="#"]):not([href^="mailto:"])::after{content:" (" attr(href) ")";font-size:.9em}
}

/* Page not found (404): same column as the legal pages, one button back to the home page */
.notfound{padding:3.5rem 0 5rem}
.notfound h1{text-wrap:balance}
.notfound p{margin:0 0 1.75rem;font-size:1.125rem;line-height:1.6;text-wrap:pretty}
