.terms-page{
  min-width:0;
}

.terms-hero{
  position:relative;
  overflow:hidden;
  padding:var(--am-space-8) 0 var(--am-space-10);
  border-bottom:1px solid var(--am-color-line);
}

.terms-hero::before{
  position:absolute;
  inset:0;
  max-width:100%;
  background:var(--am-gradient-surface);
  opacity:.42;
  content:"";
  pointer-events:none;
}

.terms-hero::after{
  position:absolute;
  top:0;
  right:0;
  width:45%;
  height:100%;
  max-width:100%;
  background:var(--am-gradient-brand);
  opacity:.08;
  content:"";
  pointer-events:none;
}

.terms-hero .am-shell{
  position:relative;
  z-index:1;
}

.terms-hero__grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);
  gap:var(--am-space-6);
  align-items:end;
  margin-top:var(--am-space-3);
}

.terms-hero__copy,
.terms-status{
  min-width:0;
}

.terms-hero__copy h1{
  max-width:900px;
  margin-top:var(--am-space-2);
}

.terms-hero__copy .am-lead{
  margin-top:var(--am-space-3);
  color:var(--am-color-muted);
}

.terms-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--am-space-2);
  margin-top:var(--am-space-4);
}

.terms-status{
  background:var(--am-color-surface);
}

.terms-status__head{
  display:flex;
  align-items:center;
  gap:var(--am-space-1);
  padding-bottom:var(--am-space-2);
  border-bottom:1px solid var(--am-color-line);
  color:var(--am-color-light);
  font-family:var(--am-font-heading);
  font-weight:700;
}

.terms-status__head svg{
  width:22px;
  height:22px;
  flex:none;
  color:var(--am-color-accent);
}

.terms-status__list{
  display:grid;
  gap:0;
  margin-top:var(--am-space-1);
}

.terms-status__list div{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
  gap:var(--am-space-2);
  padding:var(--am-space-1) 0;
  border-bottom:1px solid var(--am-color-line);
}

.terms-status__list div:last-child{
  border-bottom:0;
}

.terms-status__list dt{
  color:var(--am-color-muted);
}

.terms-status__list dd{
  min-width:0;
  margin:0;
  text-align:right;
  overflow-wrap:anywhere;
}

.terms-overview{
  padding-top:var(--am-space-8);
}

.terms-overview__grid{
  display:grid;
  grid-template-columns:minmax(220px,280px) minmax(0,1fr);
  gap:var(--am-space-6);
  align-items:start;
}

.terms-toc{
  position:sticky;
  top:calc(var(--am-header-height) + var(--am-space-3));
  min-width:0;
  padding:var(--am-space-3);
}

.terms-toc__label{
  padding-bottom:var(--am-space-2);
  border-bottom:1px solid var(--am-color-line);
  color:var(--am-color-muted);
  font-family:var(--am-font-mono);
  font-size:var(--am-text-xs);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.terms-toc ol{
  display:grid;
  gap:.2rem;
  margin-top:var(--am-space-2);
  padding-left:1.5rem;
  color:var(--am-color-muted-dark);
  font-family:var(--am-font-mono);
  font-size:var(--am-text-xs);
}

.terms-toc a{
  display:block;
  padding:.35rem .25rem;
  color:var(--am-color-muted);
  font-family:var(--am-font-body);
  font-size:var(--am-text-sm);
  line-height:1.45;
}

.terms-toc a:hover{
  color:var(--am-color-white);
}

.terms-content{
  min-width:0;
}

.terms-section{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:var(--am-space-3);
  padding:0 0 var(--am-space-10);
  scroll-margin-top:calc(var(--am-header-height) + var(--am-space-3));
}

.terms-section:last-child{
  padding-bottom:0;
}

.terms-section__number{
  width:52px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid var(--am-color-line-strong);
  border-radius:var(--am-radius-pill);
  color:var(--am-color-accent);
  font-size:var(--am-text-xs);
}

.terms-section__body{
  min-width:0;
}

.terms-section__body h2{
  padding-bottom:var(--am-space-2);
  border-bottom:1px solid var(--am-color-line);
}

.terms-section__body h3{
  margin-top:var(--am-space-4);
}

.terms-section__body > p{
  max-width:850px;
  margin-top:var(--am-space-2);
  color:var(--am-color-muted);
}

.terms-section__body a{
  overflow-wrap:anywhere;
}

.terms-rule{
  display:grid;
  grid-template-columns:minmax(120px,.3fr) minmax(0,1fr);
  gap:var(--am-space-2);
  margin-top:var(--am-space-3);
  padding:var(--am-space-3);
  border:1px solid var(--am-color-line);
  border-radius:var(--am-radius-md);
  background:var(--am-color-surface);
}

.terms-rule span{
  color:var(--am-color-muted);
}

.terms-definition-grid,
.terms-cycle-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--am-space-2);
  margin-top:var(--am-space-4);
}

.terms-definition-grid div,
.terms-cycle-grid div{
  min-width:0;
  padding:var(--am-space-3);
  border:1px solid var(--am-color-line);
  border-radius:var(--am-radius-md);
  background:var(--am-color-surface);
}

.terms-definition-grid span,
.terms-cycle-grid span{
  display:block;
  margin-bottom:.35rem;
  color:var(--am-color-accent);
  font-size:var(--am-text-xs);
}

.terms-definition-grid strong,
.terms-cycle-grid strong{
  display:block;
  overflow-wrap:anywhere;
}

.terms-cycle-grid p{
  margin-top:.45rem;
  color:var(--am-color-muted);
  font-size:var(--am-text-sm);
}

.terms-steps{
  display:grid;
  gap:0;
  margin-top:var(--am-space-4);
  list-style:none;
}

.terms-steps li{
  position:relative;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:var(--am-space-2);
  min-width:0;
  padding-bottom:var(--am-space-3);
}

.terms-steps li:not(:last-child)::after{
  position:absolute;
  top:34px;
  bottom:0;
  left:17px;
  width:1px;
  background:var(--am-color-line-strong);
  content:"";
}

.terms-steps li > span{
  position:relative;
  z-index:1;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid var(--am-color-accent);
  border-radius:50%;
  background:var(--am-color-ink);
  color:var(--am-color-accent);
  font-size:var(--am-text-xs);
}

.terms-steps p{
  margin-top:.2rem;
  color:var(--am-color-muted);
}

.terms-payment-table{
  min-width:760px;
}

.terms-section__body .c-table-scroll{
  margin-top:var(--am-space-4);
}

.terms-prohibited{
  display:grid;
  gap:var(--am-space-1);
  max-width:850px;
  margin-top:var(--am-space-2);
  padding-left:1.35rem;
  color:var(--am-color-muted);
}

.terms-prohibited li{
  padding-left:.35rem;
}

.terms-security-alert{
  margin-top:var(--am-space-4);
}

.terms-security-alert svg{
  width:26px;
  height:26px;
}

.terms-security-alert p{
  margin-top:.25rem;
  color:var(--am-color-muted);
}

.terms-checklist{
  display:grid;
  gap:var(--am-space-1);
  margin-top:var(--am-space-2);
  list-style:none;
}

.terms-checklist li{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:var(--am-space-1);
  align-items:start;
  min-width:0;
  padding:var(--am-space-2);
  border-bottom:1px solid var(--am-color-line);
  color:var(--am-color-muted);
}

.terms-checklist svg{
  width:22px;
  height:22px;
  color:var(--am-color-accent);
}

.terms-boundary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--am-space-2);
  margin-top:var(--am-space-4);
}

.terms-boundary-grid article{
  min-width:0;
  padding:var(--am-space-3);
}

.terms-boundary-grid h3{
  margin-top:0;
}

.terms-boundary-grid p{
  margin-top:var(--am-space-1);
  color:var(--am-color-muted);
  font-size:var(--am-text-sm);
}

.terms-email{
  color:var(--am-color-accent);
  text-decoration:underline;
  text-underline-offset:.2em;
}

.terms-contact-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--am-space-2);
  margin-top:var(--am-space-4);
}

.terms-contact-card{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:var(--am-space-2);
  align-items:center;
  padding:var(--am-space-3);
}

.terms-contact-card svg{
  width:30px;
  height:30px;
  color:var(--am-color-accent);
}

.terms-contact-card span,
.terms-contact-card strong,
.terms-contact-card small{
  min-width:0;
  display:block;
  overflow-wrap:anywhere;
}

.terms-contact-card small{
  margin-top:.2rem;
  color:var(--am-color-muted);
}

.terms-final{
  padding-top:var(--am-space-8);
}

.terms-final__card{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);
  gap:var(--am-space-5);
  align-items:center;
  padding:var(--am-space-6);
  border:1px solid var(--am-color-line-strong);
  border-radius:var(--am-radius-lg);
  background:var(--am-gradient-brand);
  overflow:hidden;
}

.terms-final__card > *{
  min-width:0;
}

.terms-final__card .am-eyebrow{
  color:var(--am-color-light);
}

.terms-final__card h2{
  margin-top:var(--am-space-1);
  color:var(--am-color-white);
}

.terms-final__card p{
  max-width:760px;
  margin-top:var(--am-space-2);
  color:var(--am-color-light);
}

.terms-final__actions{
  display:flex;
  flex-direction:column;
  gap:var(--am-space-1);
}

.terms-final__actions .c-btn--secondary{
  border-color:var(--am-color-white);
  color:var(--am-color-white);
}

@media(max-width:1020px){
  .terms-hero__grid{
    grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);
    gap:var(--am-space-4);
  }

  .terms-overview__grid{
    grid-template-columns:1fr;
  }

  .terms-toc{
    position:static;
  }

  .terms-toc ol{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:var(--am-space-3);
  }

  .terms-boundary-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:768px){
  .terms-hero{
    padding:var(--am-space-6) 0 var(--am-space-8);
  }

  .terms-hero__grid,
  .terms-final__card{
    grid-template-columns:1fr;
  }

  .terms-status{
    max-width:600px;
  }

  .terms-section{
    grid-template-columns:1fr;
    gap:var(--am-space-2);
    padding-bottom:var(--am-space-8);
  }

  .terms-section__number{
    width:46px;
    height:32px;
  }

  .terms-definition-grid,
  .terms-cycle-grid,
  .terms-contact-grid{
    grid-template-columns:1fr;
  }

  .terms-final__card{
    padding:var(--am-space-4);
  }
}

@media(max-width:390px){
  .terms-hero__actions{
    flex-direction:column;
  }

  .terms-hero__actions .c-btn{
    width:100%;
  }

  .terms-status__list div,
  .terms-rule{
    grid-template-columns:1fr;
    gap:.25rem;
  }

  .terms-status__list dd{
    text-align:left;
  }

  .terms-toc ol{
    grid-template-columns:1fr;
  }

  .terms-checklist li{
    padding-inline:0;
  }

  .terms-final__card{
    padding:var(--am-space-3);
  }
}
