﻿/* Offshore Hub legal content sections.
   Header, hero, footer, page frame, buttons and icon system are shared globally. */

.legal-wrap{
  display:grid;
  grid-template-columns:220px minmax(0,1fr) minmax(300px,330px);
  gap:14px;
  align-items:start;
  padding:0;
}

.toc,
.legal-card,
.legal-side-rail{
  border:1px solid rgba(57,126,174,.38);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(5,20,32,.94),rgba(2,13,22,.96));
  box-shadow:none;
}

.toc,
.legal-side-rail{
  position:sticky;
  top:88px;
  height:max-content;
  padding:18px;
}

.toc h3,
.legal-side-rail h3{
  margin:0 0 14px;
  color:#ff7417;
  font-size:13px;
  font-weight:840;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.toc a{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(117,157,190,.16);
  color:#c6d6e5;
  font-size:13px;
  font-weight:700;
  line-height:1.25;
}

.toc a:last-child{
  border-bottom:0;
}

.toc a:hover{
  color:#ff8a22;
}

.legal-card{
  padding:8px 28px 26px;
}

.legal-section{
  padding:24px 0;
  border-bottom:1px solid rgba(117,157,190,.18);
}

.legal-section:last-child{
  border-bottom:0;
}

.legal-section h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  color:#fff;
  font-size:24px;
  line-height:1.12;
  letter-spacing:0;
  font-weight:840;
}

.legal-section h2::before{
  content:"";
  flex:0 0 14px;
  width:14px;
  height:14px;
  background:#20d7ff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 4h14v16H5zM7 6v12h10V6z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 4h14v16H5zM7 6v12h10V6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.legal-section p,
.legal-section li{
  color:#cad8e8;
  font-size:15px;
  font-weight:650;
  line-height:1.72;
}

.legal-section ul{
  padding-left:20px;
}

.mini-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.mini-card{
  padding:14px;
  border:1px solid rgba(57,126,174,.28);
  border-radius:8px;
  background:rgba(2,13,24,.62);
}

.mini-card b{
  display:block;
  margin-bottom:6px;
  color:#fff;
  font-size:14px;
}

.mini-card span{
  display:block;
  color:#9fb0c3;
  font-size:13px;
  line-height:1.45;
}

.legal-hero .notice{
  max-width:780px;
  margin-top:18px;
  padding:14px 16px;
  border:1px solid rgba(57,126,174,.34);
  border-radius:8px;
  background:rgba(2,13,24,.55);
  color:#d7e6f2;
  font-size:14px;
  line-height:1.5;
}

.legal-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.legal-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 16px;
  border:1px solid rgba(57,126,174,.42);
  border-radius:8px;
  background:#03111d;
  color:#eef7ff;
  font-size:13px;
  font-weight:820;
}

.legal-btn.primary{
  border-color:rgba(255,116,23,.82);
  background:linear-gradient(180deg,#ff8c24,#ff6900);
  color:#fff;
}

.hero-card{
  align-self:end;
  padding:18px;
  border:1px solid rgba(57,126,174,.38);
  border-radius:8px;
  background:rgba(3,15,27,.78);
}

.hero-card strong{
  display:block;
  margin-bottom:6px;
  color:#fff;
  font-size:20px;
  line-height:1.15;
}

.hero-card small{
  display:block;
  color:#b8c7d8;
  line-height:1.5;
}

.stat-row{
  display:grid;
  grid-template-columns:30px 1fr;
  gap:12px;
  align-items:start;
  padding:13px 0;
  border-bottom:1px solid rgba(117,157,190,.16);
}

.stat-row:last-child{
  border-bottom:0;
}

.stat-ico{
  width:28px;
  height:28px;
}

.stat-row b{
  display:block;
  color:#fff;
}

.stat-row span{
  display:block;
  margin-top:3px;
  color:#9fb0c3;
  font-size:13px;
  line-height:1.4;
}

.action-box{
  margin-top:16px;
  padding:14px;
  border:1px solid rgba(57,126,174,.28);
  border-radius:8px;
  background:rgba(2,13,24,.58);
}

.action-box b{
  color:#fff;
}

.action-box a{
  color:#ff8a22;
  font-weight:840;
}

@media(max-width:1280px){
  .legal-wrap{
    grid-template-columns:minmax(190px,220px) minmax(0,1fr) minmax(270px,310px);
    gap:12px;
  }

  .toc{
    position:sticky;
    top:88px;
    grid-column:auto;
    display:block;
  }
}

@media(max-width:900px){
  .legal-wrap{
    grid-template-columns:1fr;
  }

  .toc,
  .legal-side-rail{
    position:relative;
    top:0;
  }

  .toc,
  .mini-grid{
    grid-template-columns:1fr;
  }

  .legal-card{
    padding:6px 20px 22px;
  }
}

.legal-page .legal-wrap{
  gap:12px!important;
}

.legal-page .toc,
.legal-page .legal-side-rail{
  padding:14px!important;
}

.legal-page .toc a{
  padding:8px 0!important;
  font-size:12.5px!important;
}

.legal-page .legal-card{
  padding:4px 22px 20px!important;
}

.legal-page .legal-section{
  padding:18px 0!important;
}

.legal-page .legal-section h2{
  margin-bottom:10px!important;
  font-size:22px!important;
}

.legal-page .legal-section p,
.legal-page .legal-section li{
  font-size:14px!important;
  line-height:1.62!important;
}

.legal-page .mini-grid{
  gap:10px!important;
  margin-top:12px!important;
}

.legal-page .mini-card{
  padding:12px!important;
}

.legal-page .legal-hero .notice{
  margin-top:14px!important;
  padding:12px 14px!important;
}

.legal-page .hero-card{
  padding:16px!important;
}

.legal-page .stat-row{
  padding:10px 0!important;
}

.legal-page .legal-wrap{
  width:min(1660px,calc(100vw - 72px))!important;
  max-width:none!important;
  margin:14px auto 20px!important;
  display:grid!important;
  grid-template-columns:minmax(190px,220px) minmax(0,1fr) minmax(288px,322px)!important;
  gap:14px!important;
  align-items:start!important;
}

.legal-page .toc,
.legal-page .legal-card,
.legal-page .legal-side-rail{
  min-width:0!important;
  max-width:none!important;
}

.legal-page .toc{
  grid-column:auto!important;
  width:auto!important;
  display:block!important;
}

.legal-page .legal-card{
  width:100%!important;
  padding:4px 24px 20px!important;
}

.legal-page .legal-section p,
.legal-page .legal-section li{
  max-width:980px!important;
}

.legal-page .mini-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

.legal-page .legal-side-rail .oh-market-panel{
  margin:0 0 14px!important;
}

@media(max-width:1180px){
  .legal-page .legal-wrap{
    width:calc(100vw - 28px)!important;
    grid-template-columns:1fr!important;
  }

  .legal-page .toc,
  .legal-page .legal-side-rail{
    position:relative!important;
    top:0!important;
  }

  .legal-page .toc{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0 14px!important;
  }

  .legal-page .toc h3{
    grid-column:1 / -1!important;
  }
}

@media(max-width:760px){
  .legal-page .legal-wrap{
    width:calc(100vw - 16px)!important;
    margin-block:8px!important;
  }

  .legal-page .toc,
  .legal-page .mini-grid{
    grid-template-columns:1fr!important;
  }

  .legal-page .legal-card{
    padding:2px 16px 18px!important;
  }
}

/* clean54: keep legal pages compact and aligned with jobs UI. */
body.legal-page .legal-wrap,
body.legal-page .legal-main,
body.legal-page .legal-side-rail{
  align-items:start!important;
}

body.legal-page :is(.toc,.legal-card,.legal-side-rail,.mini-card,.action-box){
  min-height:0!important;
  height:auto!important;
}

body.legal-page .legal-section{
  border-bottom:1px solid rgba(117,157,190,.18)!important;
}

body.legal-page .legal-section:last-child{
  border-bottom:0!important;
}

body.legal-page .mini-grid{
  align-items:start!important;
}
