/* ==========================================================================
   AroundByte PDF — legal & information pages (same black + yellow identity)
   Loaded after app.css; uses the same tokens.
   ========================================================================== */
.legal-page{min-height:100vh;color:var(--tx)}
.legal-page::after{display:none}
.legal-page::before{top:0;inset-inline-end:0;height:340px}
.legal-header,.legal-main,.legal-footer{position:relative;z-index:1}

.legal-header{
  min-height:68px;padding:12px max(22px,calc((100vw - 1100px)/2));
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:var(--side-bg);border-bottom:1px solid var(--gold-edge);box-shadow:0 10px 34px rgba(0,0,0,.5);
}
.legal-brand{display:flex;align-items:center;gap:10px;color:var(--tx);text-decoration:none;font-size:15px}
.legal-brand img{object-fit:contain;border-radius:8px;box-shadow:0 0 0 1px rgba(255,200,0,.35),0 0 18px rgba(255,200,0,.2)}
.legal-actions{display:flex;align-items:center;gap:8px}

.legal-main{width:min(900px,calc(100% - 36px));margin:48px auto 64px}
.legal-content{
  position:relative;overflow:hidden;padding:clamp(22px,5vw,48px);
  background:var(--panel-bg);border:1px solid var(--gold-edge);border-radius:16px;box-shadow:var(--panel-shadow);
}
.legal-content::after{
  content:"";position:absolute;top:0;inset-inline-end:0;width:240px;height:160px;pointer-events:none;
  background-image:var(--dots-soft);background-size:12px 12px;
  -webkit-mask-image:radial-gradient(ellipse at 100% 0%,#000,transparent 70%);
          mask-image:radial-gradient(ellipse at 100% 0%,#000,transparent 70%);
}
[dir=rtl] .legal-content::after{-webkit-mask-image:radial-gradient(ellipse at 0% 0%,#000,transparent 70%);mask-image:radial-gradient(ellipse at 0% 0%,#000,transparent 70%)}
.legal-content>*{position:relative;z-index:1}
.legal-eyebrow{color:var(--y);font-size:11px;font-weight:700;letter-spacing:2px;margin-bottom:12px}
.legal-content h1{font-size:clamp(25px,4vw,34px);line-height:1.3;margin-bottom:10px}
.legal-content h1::after{content:"";display:block;width:38px;height:3px;margin-top:12px;border-radius:99px;background:linear-gradient(90deg,var(--y),rgba(255,200,0,.15));box-shadow:0 0 16px rgba(255,200,0,.45)}
.legal-updated{font-size:12px;color:var(--mu);padding-bottom:24px;border-bottom:2px dotted rgba(255,200,0,.35)}
.legal-body{padding-top:8px}
.legal-section{padding:18px 0;border-bottom:1px dotted rgba(255,200,0,.2)}
.legal-section:last-child{border-bottom:0}
.legal-section h2{font-size:15px;font-weight:600;margin-bottom:9px;color:var(--tx)}
.legal-section p{font-size:14px;line-height:1.9;color:var(--mu);max-width:75ch}
.legal-contact{margin-top:26px;padding:16px;background:var(--row-bg);border:1px solid rgba(255,200,0,.3);border-radius:8px;color:var(--mu);line-height:1.8}
.legal-contact a{color:var(--y);text-decoration:none;overflow-wrap:anywhere}
.legal-contact a:hover{text-decoration:underline}

.legal-footer{
  display:flex;justify-content:space-between;gap:12px;padding:20px max(22px,calc((100vw - 1100px)/2));
  border-top:2px dotted rgba(255,200,0,.3);color:var(--mu);font-size:12px;
}
.legal-footer a{color:var(--mu);text-decoration:none}
.legal-footer a:hover{color:var(--y)}

@media(max-width:560px){
  .legal-header{padding:12px 14px}
  .legal-brand{font-size:13px}
  .legal-actions{gap:4px}
  .legal-actions .btn{padding:7px 9px;font-size:12px}
  .legal-main{margin:22px auto 36px;width:calc(100% - 24px)}
  .legal-content{padding:22px 18px}
  .legal-footer{padding:16px;flex-wrap:wrap}
}


/* ORIGINAL AROUNDBYTE LOGO */
.legal-brand{
  display:flex;
  align-items:center;
  flex-shrink:0;
  text-decoration:none;
}

.legal-brand .legal-logo{
  display:block;
  width:150px;
  max-width:100%;
  height:auto;
  max-height:50px;
  object-fit:contain;
  border-radius:0;
  box-shadow:none;
}

.legal-brand:focus-visible{
  outline:2px solid var(--y);
  outline-offset:5px;
  border-radius:4px;
}

@media(max-width:560px){
  .legal-brand .legal-logo{
    width:125px;
    max-height:42px;
  }
}
