/* LocalNode legal pages: isolate long legal tables so the document never stretches wider than the viewport.
   Loaded after the shared stylesheet on privacy, cookies and company-details only. */
.legal-layout > .legal-toc,
.legal-layout > .legal-copy{
  min-width:0;
  max-width:100%;
}
.legal-copy > section{
  min-width:0;
  max-width:100%;
}
.legal-table-wrap{
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.legal-table-wrap:focus-visible{
  outline:2px solid #a3d2bf;
  outline-offset:4px;
}
.legal-scroll-hint{
  display:none;
}

@media (max-width:800px){
  .legal-layout{
    grid-template-columns:minmax(0,1fr);
    gap:30px;
  }
  .legal-hero{
    min-height:0;
    padding:124px 0 58px;
  }
  .legal-hero .subpage-hero-grid{
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    width:var(--page);
    max-width:100%;
  }
  .legal-hero .subpage-hero-copy{
    min-width:0;
    max-width:100%;
    justify-self:stretch;
  }
  .legal-hero .subpage-hero-copy p{
    font-size:16px;
    line-height:1.7;
  }
  .legal-section{
    padding:45px 0 80px;
  }
  .legal-toc{
    position:static;
    padding-bottom:22px;
    border-bottom:1px solid var(--border-soft);
  }
  .legal-toc .section-index{
    display:block;
    color:#a8bdb3;
  }
  .legal-toc nav{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:16px;
  }
  .legal-toc a{
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:9px 12px;
    border:1px solid #303c36;
    border-radius:9px;
    background:#111715;
    color:#ced4d1;
    font-size:13px;
    line-height:1.4;
  }
  .legal-toc a:hover,
  .legal-toc a:focus-visible{
    color:#fff;
    border-color:#547e69;
  }
  .legal-copy section{
    padding-bottom:40px;
    margin-bottom:42px;
  }
  .legal-copy h2{
    font-size:clamp(30px,6vw,42px);
    line-height:1.12;
    overflow-wrap:anywhere;
  }
  .legal-copy h3{
    font-size:17px;
    line-height:1.4;
  }
  .legal-copy p,
  .legal-copy li{
    font-size:16px;
    line-height:1.75;
  }
  .legal-scroll-hint{
    display:block;
    margin:14px 0 8px!important;
    color:#b7c6be!important;
    font-size:13px!important;
    line-height:1.55!important;
  }
  .legal-status-grid{
    grid-template-columns:minmax(0,1fr);
  }
}

@media (max-width:560px){
  .legal-hero{
    padding:112px 0 45px;
  }
  .legal-hero h1{
    font-size:clamp(35px,9vw,46px);
    line-height:1.06;
    letter-spacing:-.045em;
  }
  .legal-hero .breadcrumb{
    margin-bottom:15px;
  }
  .legal-hero .subpage-hero-grid{
    gap:20px;
  }
  .legal-hero .legal-version{
    margin-top:12px!important;
  }
  .legal-section{
    padding:34px 0 64px;
  }
  .legal-layout{
    gap:30px;
  }
  .legal-toc nav{
    grid-template-columns:none;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .legal-toc a{
    padding:9px 11px;
    font-size:13px;
  }
  .legal-copy section{
    padding-bottom:30px;
    margin-bottom:35px;
    scroll-margin-top:82px;
  }
  .legal-copy h2{
    font-size:clamp(30px,8vw,36px);
    margin:12px 0 20px;
  }
  .legal-details{
    margin-top:20px;
  }
  .legal-details div{
    grid-template-columns:minmax(0,1fr);
    gap:5px;
    padding:14px 15px;
  }
  .legal-table{
    min-width:680px;
  }
  .legal-table th,
  .legal-table td{
    padding:12px;
  }
}
