/* ============================================================================
   static/dash/legal.css
   Art Argentum — About / Contact / Privacy Policy / Terms
   Safe for public shell and Extended shell.
   TOC is a top quick-access box, not a side column.
   ========================================================================== */

/* ==========================================================================
   1) BASE
   ========================================================================== */

.legal-page,
.legal-page *,
.legal-page *::before,
.legal-page *::after,
.legal-mobile-home,
.legal-mobile-home *,
.legal-mobile-home *::before,
.legal-mobile-home *::after{
  box-sizing:border-box;
  border-radius:0;
}

.legal-page{
  --legal-bg:#000;
  --legal-panel:rgba(0,0,0,.58);
  --legal-panel-soft:rgba(255,255,255,.030);
  --legal-line:rgba(255,255,255,.105);
  --legal-line-soft:rgba(255,255,255,.065);
  --legal-title:rgba(246,246,246,.94);
  --legal-text:rgba(225,225,225,.74);
  --legal-muted:rgba(190,190,190,.52);
  --legal-faint:rgba(255,255,255,.38);
  --legal-ui-font:var(--ui-font, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);

  position:relative;
  isolation:isolate;
  display:block;
  width:min(1040px, calc(100% - 56px));
  max-width:1040px;
  min-width:0;
  margin:0 auto;
  padding:46px 0 92px;
  color:var(--legal-text);
  font-family:var(--legal-ui-font);
  font-weight:400;
  background:transparent;
}

.legal-page::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:#000;
}

.legal-page::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.075;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.11) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.11) 0 1px, transparent 1px 24px);
  mask-image:linear-gradient(180deg, transparent, #000 16%, #000 78%, transparent);
}

.legal-page a,
.legal-page a:link,
.legal-page a:visited,
.legal-page a:hover,
.legal-page a:active{
  color:inherit;
  text-decoration:none;
}

/* ==========================================================================
   2) EXTENDED HOST
   ========================================================================== */

.extended-html-body .extended-shell-html .aa-extended-legal-host{
  position:relative;
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  padding:0;
  overflow:visible;
  background:transparent;
  color:rgba(255,255,255,.86);
}

.extended-html-body .extended-shell-html .aa-extended-legal-host .legal-page{
  width:min(1040px, calc(100% - 44px));
  max-width:1040px;
  padding:42px 0 74px;
}

.extended-html-body .extended-shell-html .aa-extended-legal-host .legal-mobile-home{
  display:none;
}

/* ==========================================================================
   3) HERO
   ========================================================================== */

.legal-hero{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  margin:0 0 34px;
  padding:0 0 28px;
  border-bottom:1px solid var(--legal-line);
}

.legal-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:1px;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.22), rgba(255,255,255,0));
}

.legal-hero-kicker{
  display:block;
  margin:0 0 10px;
  font-size:11px;
  line-height:1.2;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(255,255,255,.50);
}

.legal-hero-title{
  display:block;
  max-width:100%;
  margin:0;
  font-size:clamp(36px, 5.4vw, 76px);
  line-height:.96;
  font-weight:400;
  letter-spacing:.035em;
  text-transform:uppercase;
  color:var(--legal-title);
}

.legal-hero-lead{
  display:block;
  max-width:900px;
  margin:16px 0 0;
  font-size:clamp(14px, 1.18vw, 18px);
  line-height:1.62;
  color:rgba(226,226,226,.72);
}

.legal-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 0;
  font-size:11px;
  line-height:1.35;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.46);
}

/* ==========================================================================
   4) LAYOUT
   ========================================================================== */

.legal-layout,
.legal-layout.has-toc,
.legal-layout.no-toc{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
}

.legal-content{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
}

/* ==========================================================================
   5) QUICK ACCESS / TOC
   ========================================================================== */

.legal-toc{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0 0 22px;
  padding:16px 16px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.014)),
    rgba(0,0,0,.48);
  border:1px solid var(--legal-line);
  box-shadow:none;
}

.legal-toc-title{
  display:block;
  width:100%;
  margin:0 0 12px;
  padding:0;
  font-size:11px;
  line-height:1.2;
  font-weight:400;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.54);
}

.legal-toc-nav{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:4px 16px;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0;
  padding:0;
}

.legal-toc-link,
.legal-toc-link:link,
.legal-toc-link:visited,
.legal-toc a,
.legal-toc a:link,
.legal-toc a:visited{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0;
  padding:6px 0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  font-size:11.5px;
  line-height:1.32;
  font-weight:400;
  letter-spacing:.01em;
  color:rgba(255,255,255,.66);
  text-decoration:none;
  border:0;
  background:transparent;
  box-shadow:none;
}

.legal-toc-link:hover,
.legal-toc a:hover{
  color:rgba(255,255,255,.96);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ==========================================================================
   6) SECTIONS
   ========================================================================== */

.legal-sec{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0 0 16px;
  padding:20px 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.040), rgba(255,255,255,.010)),
    var(--legal-panel);
  border:1px solid var(--legal-line-soft);
  box-shadow:none;
}

.legal-sec:last-child{
  margin-bottom:0;
}

.legal-sec::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:1px;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
}

.legal-sec-title{
  display:block;
  margin:0 0 12px;
  font-size:12px;
  line-height:1.28;
  font-weight:400;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.87);
}

.legal-sec-body{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  font-size:13px;
  line-height:1.62;
  color:var(--legal-text);
}

.legal-sec-body p{
  margin:0 0 11px;
}

.legal-sec-body p:last-child{
  margin-bottom:0;
}

.legal-list{
  margin:0;
  padding-left:18px;
}

.legal-list li{
  margin:0 0 8px;
  padding-left:4px;
  break-inside:avoid;
}

.legal-list li:last-child{
  margin-bottom:0;
}

/* ==========================================================================
   7) STEPS / CALLOUTS / ERROR
   ========================================================================== */

.legal-steps,
.legal-callouts{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  width:100%;
}

.legal-callouts{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.legal-step,
.legal-callout{
  display:block;
  min-width:0;
  padding:13px 14px;
  background:rgba(255,255,255,.030);
  border:1px solid rgba(255,255,255,.075);
  box-shadow:none;
}

.legal-step-title,
.legal-callout-label{
  margin:0 0 7px;
  font-size:11px;
  line-height:1.25;
  font-weight:400;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.84);
}

.legal-step-text,
.legal-callout-text{
  font-size:13px;
  line-height:1.54;
  color:rgba(225,225,225,.70);
}

.legal-error{
  padding:18px 20px;
  background:rgba(0,0,0,.68);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.78);
  font-size:13px;
  line-height:1.55;
}

/* ==========================================================================
   8) PAGE VARIANTS
   ========================================================================== */

.legal-page--about{
  width:min(1120px, calc(100% - 56px));
  max-width:1120px;
  padding-top:56px;
}

.legal-page--about .legal-hero-title{
  max-width:100%;
  font-size:clamp(42px, 6vw, 86px);
  line-height:.94;
  letter-spacing:.03em;
}

.legal-page--about .legal-hero-lead{
  max-width:980px;
  font-size:clamp(16px, 1.35vw, 21px);
}

.legal-page--about .legal-sec{
  margin-bottom:24px;
  padding:30px 34px;
}

.legal-page--about .legal-sec-title{
  font-size:15px;
  margin-bottom:16px;
}

.legal-page--about .legal-sec-body{
  max-width:1060px;
  font-size:15px;
  line-height:1.76;
}

.legal-page--about .legal-sec[data-sec-type="bullets"] .legal-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px 28px;
  padding-left:0;
  list-style:none;
}

.legal-page--about .legal-sec[data-sec-type="bullets"] .legal-list li{
  position:relative;
  margin:0;
  padding:0 0 0 18px;
}

.legal-page--about .legal-sec[data-sec-type="bullets"] .legal-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:5px;
  height:5px;
  background:rgba(255,255,255,.62);
}

.legal-page--about .legal-steps{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.legal-page--contact{
  width:min(960px, calc(100% - 56px));
  max-width:960px;
}

.legal-page--contact .legal-layout.no-toc .legal-content{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.legal-page--contact .legal-sec:first-child{
  grid-column:1 / -1;
}

.legal-page--contact .legal-sec-body{
  font-size:14px;
}

.legal-page--legal .legal-sec[data-sec-type="bullets"] .legal-list{
  columns:2;
  column-gap:34px;
}

.legal-page--legal .legal-sec{
  padding:18px 20px;
  margin-bottom:14px;
}

/* ==========================================================================
   9) MOBILE HOME
   ========================================================================== */

.legal-mobile-home{
  display:none;
  width:100%;
  justify-content:center;
  align-items:center;
  padding:0 0 8px;
  margin-top:-6px;
  position:relative;
  z-index:99999;
}

.legal-mobile-home-link{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:rgba(255,255,255,.78);
  text-decoration:none;
}

.legal-mobile-home-logo{
  display:block;
  width:56px;
  height:auto;
  object-fit:contain;
  opacity:.90;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.42));
}

.legal-mobile-home-label{
  display:block;
  font-size:10px;
  line-height:1.2;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.62);
  text-align:center;
}

/* ==========================================================================
   10) RESPONSIVE
   ========================================================================== */

@media (max-width:1180px){
  .legal-page,
  .legal-page--about,
  .legal-page--contact{
    width:min(100%, calc(100% - 34px));
  }

  .legal-page--about .legal-steps{
    grid-template-columns:1fr;
  }
}

@media (max-width:980px){
  .legal-page,
  .legal-page--about,
  .legal-page--contact{
    width:min(100%, calc(100% - 22px));
    padding:24px 0 56px;
  }

  body.public-body.shell-page-body:not(.extended-html-body) .legal-page,
  body.public-body.shell-page-body:not(.extended-html-body) .legal-page--about,
  body.public-body.shell-page-body:not(.extended-html-body) .legal-page--contact{
    width:min(100%, calc(100vw - 26px));
    padding:84px 0 72px;
  }

  body.public-body.shell-page-body:not(.extended-html-body) .legal-mobile-home{
    display:flex;
  }

  .legal-toc-nav{
    grid-template-columns:1fr;
  }

  .legal-page--contact .legal-layout.no-toc .legal-content{
    display:block;
  }

  .legal-sec,
  .legal-page--about .legal-sec,
  .legal-page--legal .legal-sec{
    padding:18px 16px;
  }

  .legal-callouts{
    grid-template-columns:1fr;
  }

  .legal-page--legal .legal-sec[data-sec-type="bullets"] .legal-list{
    columns:1;
  }

  .legal-page--about .legal-sec[data-sec-type="bullets"] .legal-list{
    grid-template-columns:1fr;
  }
}

@media (max-width:560px){
  .legal-page,
  .legal-page--about,
  .legal-page--contact{
    width:min(100%, calc(100% - 16px));
    padding-top:22px;
  }

  body.public-body.shell-page-body:not(.extended-html-body) .legal-page,
  body.public-body.shell-page-body:not(.extended-html-body) .legal-page--about,
  body.public-body.shell-page-body:not(.extended-html-body) .legal-page--contact{
    width:min(100%, calc(100vw - 18px));
    padding-top:78px;
  }

  .legal-hero-title,
  .legal-page--about .legal-hero-title{
    font-size:34px;
    line-height:1.02;
  }

  .legal-hero-lead,
  .legal-page--about .legal-hero-lead{
    font-size:13px;
    line-height:1.55;
  }

  .legal-sec,
  .legal-page--about .legal-sec,
  .legal-page--legal .legal-sec{
    padding:15px 13px;
  }

  .legal-sec-title,
  .legal-page--about .legal-sec-title{
    font-size:11px;
  }

  .legal-sec-body,
  .legal-page--about .legal-sec-body{
    font-size:12.5px;
    line-height:1.62;
  }
}




/* ==========================================================================
   EXTENDED LEGAL — REMOVE QUICK ACCESS / TOC
   Public legal pages keep their own behavior. Extended uses one-column layout.
   ========================================================================== */

.extended-html-body .extended-shell-html .aa-extended-legal-host .legal-toc{
  display:none !important;
}

.extended-html-body .extended-shell-html .aa-extended-legal-host .legal-layout.has-toc{
  display:block !important;
  grid-template-columns:none !important;
  gap:0 !important;
}

.extended-html-body .extended-shell-html .aa-extended-legal-host .legal-content{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}