.terms-body { background: #f7f5f0; }

.terms-page { min-height: 70vh; }

.terms-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 130;
  height: 3px;
  direction: ltr;
  pointer-events: none;
}

.terms-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #d5a144, #f1cf85);
  box-shadow: 0 0 12px rgba(226, 178, 83, .45);
}

.terms-hero {
  position: relative;
  padding: 154px 0 78px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 11% 25%, rgba(225, 177, 80, .18), transparent 28%),
    radial-gradient(circle at 82% 88%, rgba(225, 177, 80, .1), transparent 27%),
    linear-gradient(135deg, #171816 0%, #2b2c28 58%, #1c1d1a 100%);
}

.terms-hero::before {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  top: -255px;
  left: -85px;
  border: 1px solid rgba(232, 190, 107, .16);
  border-radius: 50%;
}

.terms-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 80px;
  align-items: center;
}

.terms-hero-copy { max-width: 720px; }
.terms-hero .inner-eyebrow { color: #e6b65e; }

.terms-hero h1 {
  margin: 14px 0 16px;
  color: #fff;
  font-size: clamp(37px, 5vw, 62px);
  line-height: 1.32;
  letter-spacing: -2px;
}

.terms-hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  line-height: 2.05;
}

.terms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.terms-hero-actions .secondary-action svg,
.terms-hero-actions .primary-action svg { font-size: 19px; }

.terms-hero-card {
  padding: 27px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(231, 185, 103, .23);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.terms-hero-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #efc778;
  background: rgba(229, 181, 91, .11);
  border: 1px solid rgba(229, 181, 91, .24);
  border-radius: 18px;
}

.terms-hero-card-icon svg { font-size: 27px; }
.terms-hero-card small { display: block; margin: 4px 0; color: rgba(255, 255, 255, .5); }
.terms-hero-card > div > b { color: #fff; font-size: 19px; }

.terms-hero-card-row {
  grid-column: 1 / -1;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
}

.terms-hero-card-row b,
.terms-hero-card-row a { color: #f4e3bd; font-size: 14px; font-weight: 800; }

.terms-intro { position: relative; z-index: 2; margin-top: -28px; }

.terms-notice {
  padding: 22px 25px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  background: #fffaf0;
  border: 1px solid #ead9ae;
  border-radius: 19px;
  box-shadow: 0 13px 34px rgba(52, 44, 29, .075);
}

.terms-notice > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #9e7021;
  background: #f4e6c3;
  border-radius: 13px;
}

.terms-notice svg { font-size: 21px; }
.terms-notice b { display: block; color: #4a3a1d; font-size: 15px; }
.terms-notice p { margin: 5px 0 0; color: #766b56; font-size: 13px; line-height: 1.9; }

.terms-main { padding: 64px 0 96px; }

.terms-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.terms-sidebar {
  position: sticky;
  top: 88px;
}

.terms-nav {
  padding: 18px 13px 14px;
  display: grid;
  gap: 3px;
  background: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 19px;
  box-shadow: 0 13px 38px rgba(41, 38, 31, .055);
}

.terms-nav strong {
  padding: 3px 10px 12px;
  color: #272823;
  font-size: 14px;
  border-bottom: 1px solid #eee9df;
  margin-bottom: 5px;
}

.terms-nav a {
  position: relative;
  padding: 8px 12px 8px 23px;
  color: #77746d;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 650;
  transition: color .18s ease, background-color .18s ease;
}

.terms-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: #c78f31;
  border-radius: 99px;
  transform: translateY(-50%);
  transition: height .18s ease;
}

.terms-nav a:hover,
.terms-nav a:focus-visible,
.terms-nav a.is-active { color: #5c421b; background: #fbf4e5; }
.terms-nav a.is-active::after { height: 18px; }

.terms-sidebar-help {
  margin-top: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  background: #292a27;
  border-radius: 16px;
}

.terms-sidebar-help > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ebc370;
  background: rgba(255, 255, 255, .07);
  border-radius: 11px;
}

.terms-sidebar-help svg { font-size: 20px; }
.terms-sidebar-help b { display: block; font-size: 12px; }
.terms-sidebar-help a { color: #d7b567; font-size: 12px; }
.terms-mobile-nav { display: none; }

.terms-content { min-width: 0; display: grid; gap: 16px; }

.terms-content-heading {
  padding: 8px 4px 19px;
  border-bottom: 1px solid #dfdbd2;
  margin-bottom: 4px;
}

.terms-content-heading > span {
  color: #b27d26;
  font-size: 13px;
  font-weight: 800;
}

.terms-content-heading h2 {
  margin: 8px 0 8px;
  color: #282924;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.5;
  letter-spacing: -.8px;
}

.terms-content-heading p { max-width: 790px; margin: 0; color: #77746d; line-height: 2; }

.terms-policy-card {
  scroll-margin-top: 105px;
  padding: 29px 31px;
  background: #fff;
  border: 1px solid #e5e0d7;
  border-radius: 20px;
  box-shadow: 0 11px 34px rgba(43, 40, 33, .045);
}

.terms-policy-card > header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.terms-policy-card > header > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #795316;
  background: #f6ead0;
  border: 1px solid #e7d4aa;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
}

.terms-policy-card header small { display: block; margin-bottom: 2px; color: #a39d92; font-size: 12px; }
.terms-policy-card h2 { margin: 0; color: #292a26; font-size: 21px; line-height: 1.55; }

.terms-policy-card > p {
  margin: 0 0 12px;
  color: #67645e;
  font-size: 14px;
  line-height: 2.08;
}

.terms-policy-card > p:last-child { margin-bottom: 0; }

.terms-policy-card ul {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.terms-policy-card li {
  position: relative;
  padding-right: 20px;
  color: #67645e;
  font-size: 13.5px;
  line-height: 1.95;
}

.terms-policy-card li::before {
  content: "";
  position: absolute;
  top: .82em;
  right: 2px;
  width: 6px;
  height: 6px;
  background: #d1a249;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f7eedb;
}

.terms-inline-note {
  margin: 16px 0;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #4c6c4a;
  background: #f1f7ee;
  border: 1px solid #d8e7d4;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.85;
}

.terms-inline-note svg { flex: 0 0 auto; margin-top: 3px; font-size: 17px; }

.terms-policy-card--important { border-top: 3px solid #d5a34a; }

.terms-rule-grid,
.terms-privacy-grid {
  margin: 17px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.terms-rule-grid > div {
  padding: 17px;
  background: #faf8f3;
  border: 1px solid #ebe5d9;
  border-radius: 13px;
}

.terms-rule-grid b { color: #3c3c37; font-size: 13px; }
.terms-rule-grid p { margin: 6px 0 0; color: #7b7770; font-size: 12px; line-height: 1.85; }
.terms-policy-card p.terms-muted { padding-right: 14px; color: #8a7651; border-right: 2px solid #d9b871; font-size: 12.5px; }

.terms-policy-card--privacy {
  color: #fff;
  background: linear-gradient(145deg, #252623, #30312d);
  border-color: #3c3d38;
}

.terms-policy-card--privacy > header > span { color: #f4d18b; background: rgba(221, 174, 83, .12); border-color: rgba(221, 174, 83, .27); }
.terms-policy-card--privacy h2 { color: #fff; }
.terms-policy-card--privacy header small { color: rgba(255, 255, 255, .42); }
.terms-policy-card--privacy > p,
.terms-policy-card--privacy li { color: rgba(255, 255, 255, .67); }
.terms-policy-card--privacy li::before { background: #dfb35c; box-shadow: 0 0 0 4px rgba(223, 179, 92, .1); }

.terms-privacy-grid > div {
  padding: 17px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
}

.terms-privacy-grid span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #e8be6a;
  background: rgba(232, 190, 106, .1);
  border-radius: 10px;
}

.terms-privacy-grid svg { font-size: 18px; }
.terms-privacy-grid b { color: #f6e6c4; font-size: 12px; }
.terms-privacy-grid p { margin: 6px 0 0; color: rgba(255, 255, 255, .54); font-size: 12px; line-height: 1.85; }

.terms-contact-box {
  margin-top: 18px;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: #faf8f3;
  border: 1px solid #ebe4d7;
  border-radius: 15px;
}

.terms-contact-box > * {
  min-width: 0;
  margin: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #41413b;
  background: #fff;
  border: 1px solid #ebe5da;
  border-radius: 11px;
}

.terms-contact-box > p { grid-column: 1 / -1; }
.terms-contact-box > * > svg { flex: 0 0 auto; color: #ba8530; font-size: 21px; }
.terms-contact-box small { display: block; margin-bottom: 2px; color: #918c83; font-size: 12px; }
.terms-contact-box b { display: block; overflow-wrap: anywhere; font-size: 12px; }

.terms-final-cta {
  margin-top: 6px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 19px;
  color: #fff;
  background: #222320;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(30, 30, 27, .14);
}

.terms-final-cta > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #e8be6b;
  background: rgba(232, 190, 107, .09);
  border: 1px solid rgba(232, 190, 107, .19);
  border-radius: 16px;
}

.terms-final-cta > span svg { font-size: 26px; }
.terms-final-cta small { color: #d8ae5e; }
.terms-final-cta h2 { margin: 3px 0; color: #fff; font-size: 20px; }
.terms-final-cta p { margin: 0; color: rgba(255, 255, 255, .56); font-size: 12px; }
.terms-final-cta .primary-action { min-width: 155px; }

@media (max-width: 980px) {
  .terms-hero-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 40px; }
  .terms-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 20px; }
  .terms-policy-card { padding: 26px; }
  .terms-rule-grid,
  .terms-privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .terms-hero { padding: 128px 0 62px; }
  .terms-hero-grid { grid-template-columns: 1fr; gap: 27px; }
  .terms-hero-copy { text-align: center; }
  .terms-hero-copy .inner-eyebrow,
  .terms-hero-actions { justify-content: center; }
  .terms-hero h1 { font-size: 38px; letter-spacing: -1px; }
  .terms-hero-copy > p { font-size: 14px; }
  .terms-hero-card { max-width: 500px; width: 100%; margin-inline: auto; }
  .terms-layout { grid-template-columns: 1fr; }
  .terms-sidebar { position: sticky; top: 76px; z-index: 10; }
  .terms-mobile-nav {
    width: 100%;
    min-height: 51px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #353630;
    background: #fff;
    border: 1px solid #dfd9ce;
    border-radius: 14px;
    box-shadow: 0 9px 24px rgba(41, 38, 31, .1);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
  }
  .terms-mobile-nav span { display: flex; align-items: center; gap: 8px; }
  .terms-mobile-nav svg { font-size: 18px; transition: transform .2s ease; }
  .terms-mobile-nav[aria-expanded="true"] > svg { transform: rotate(180deg); }
  .terms-nav {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    max-height: min(64vh, 480px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .terms-sidebar.is-open .terms-nav { visibility: visible; opacity: 1; transform: none; }
  .terms-sidebar-help { display: none; }
  .terms-content-heading { padding-top: 16px; }
  .terms-final-cta { grid-template-columns: auto 1fr; }
  .terms-final-cta .primary-action { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 520px) {
  .terms-hero { padding-top: 115px; }
  .terms-hero h1 { font-size: 32px; }
  .terms-hero-actions { display: grid; }
  .terms-hero-actions > * { width: 100%; }
  .terms-hero-card { padding: 20px; }
  .terms-intro { margin-top: -18px; }
  .terms-notice { padding: 17px; }
  .terms-notice > span { width: 38px; height: 38px; }
  .terms-main { padding: 45px 0 72px; }
  .terms-policy-card { padding: 22px 18px; border-radius: 17px; }
  .terms-policy-card > header { align-items: flex-start; }
  .terms-policy-card > header > span { width: 40px; height: 40px; border-radius: 12px; }
  .terms-policy-card h2 { font-size: 18px; }
  .terms-policy-card > p { font-size: 13px; }
  .terms-policy-card li { font-size: 12.5px; }
  .terms-contact-box { grid-template-columns: 1fr; }
  .terms-contact-box > p { grid-column: auto; }
  .terms-final-cta { padding: 22px 18px; grid-template-columns: 1fr; text-align: center; }
  .terms-final-cta > span { margin-inline: auto; }
}

@media print {
  .site-header,
  .site-footer,
  .site-promo-popup,
  .terms-progress,
  .terms-hero-actions,
  .terms-sidebar,
  .terms-final-cta { display: none !important; }
  .terms-body,
  .terms-page { background: #fff; }
  .terms-hero { padding: 30px 0; color: #111; background: #fff; border-bottom: 2px solid #222; }
  .terms-hero-grid { display: block; }
  .terms-hero h1,
  .terms-hero-card b,
  .terms-hero-card-row a { color: #111; }
  .terms-hero-copy > p,
  .terms-hero-card small,
  .terms-hero-card-row { color: #555; }
  .terms-hero-card { margin-top: 18px; box-shadow: none; border-color: #ddd; }
  .terms-hero-card-icon { display: none; }
  .terms-intro { margin-top: 20px; }
  .terms-main { padding: 25px 0; }
  .terms-layout { display: block; }
  .terms-policy-card { break-inside: avoid; box-shadow: none; }
  .terms-policy-card--privacy { color: #111; background: #fff; border-color: #ccc; }
  .terms-policy-card--privacy h2,
  .terms-policy-card--privacy > p,
  .terms-policy-card--privacy li,
  .terms-privacy-grid b,
  .terms-privacy-grid p { color: #333; }
  .terms-privacy-grid > div { border-color: #ddd; }
}
