/* ========================================
   TERMS PAGE — Monochrome, Glassy, Readable
   Fixes heading overlaps by fully resetting h1–h6
   ======================================== */

/* Page container spacing + positioning for bg effects */
.terms-page .terms-container{
  position: relative;
  padding: 96px 0 90px; /* a bit more top space under fixed header */
}

/* Card */
.terms-card{
  padding: 36px 36px 28px;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-medium);
  isolation: isolate; /* contain any blends */
}

/* ===== Solid, simple headings on this page (no global effects) ===== */
.terms-page .terms-card h1,
.terms-page .terms-card h2,
.terms-page .terms-card h3,
.terms-page .terms-card h4,
.terms-page .terms-card h5,
.terms-page .terms-card h6{
  /* wipe decorative globals */
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: var(--white) !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  position: static !important;
  transform: none !important;
  z-index: auto !important;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: anywhere; /* safer wrapping on small screens */
}

/* Kill any ::before/::after title ornaments that may exist globally */
.terms-page .terms-card h1::before,
.terms-page .terms-card h1::after,
.terms-page .terms-card h2::before,
.terms-page .terms-card h2::after,
.terms-page .terms-card h3::before,
.terms-page .terms-card h3::after,
.terms-page .terms-card h4::before,
.terms-page .terms-card h4::after,
.terms-page .terms-card h5::before,
.terms-page .terms-card h5::after,
.terms-page .terms-card h6::before,
.terms-page .terms-card h6::after{
  content: none !important;
}

/* Header */
.page-header{ margin-bottom: 28px; }
.page-header h1{
  font-size: clamp(2rem, 3.3vw + 1rem, 3.2rem);
  margin: 0 0 .4rem 0; /* ensure space below main title */
}
.page-header .subtitle{
  color: var(--light-grey);
  max-width: 900px;
  margin: 0 0 .85rem 0;
  line-height: 1.55;
}

/* Sections (own spacing so next h2 never collides) */
.terms-section{
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,.12);
  scroll-margin-top: 110px; /* nice anchor offset under fixed header */
}

/* Headings inside sections */
.terms-section h2{
  font-size: 1.6rem;
  margin: 0 0 .6rem 0 !important; /* remove any negative/extra top margins */
}
.terms-section h3{
  font-size: 1.05rem;
  margin: .9rem 0 .45rem;
  color: var(--white);
}

/* Body text & lists */
.terms-section p{ color: var(--light-grey); }
.terms-section ul{
  margin: .45rem 0 0;
  padding-left: 1.15rem;
  color: var(--light-grey);
}
.terms-section li{
  margin: .4rem 0;
  position: relative;
  list-style: none;
  padding-left: .6rem;
}
.terms-section li::before{
  content: "•";
  position: absolute;
  left: -1.05rem;
  color: var(--silver);
  font-weight: 700;
}

/* GDPR grid */
.gdpr-rights{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 10px;
  margin: 10px 0 6px;
}
.gdpr-item{
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  padding: .75rem .9rem;
  background: rgba(255,255,255,.03);
  color: var(--light-grey);
}

/* Links in text blocks */
.contact-gdpr a,
.alt-dispute a{ color: var(--silver); }
.alt-dispute ul{ padding-left: 1.15rem; }

/* Contact block */
.contact-block p{ color: var(--light-grey); }

/* Footer row under content */
.meta-row{
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.last-updated{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  padding: .6rem .9rem;
  color: var(--silver);
  font-size: .9rem;
}

/* Subtle page background vignette (desktop only) */
@media (min-width: 1025px){
  .terms-page .terms-container::before{
    content:"";
    position:absolute; inset:0;
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,.05), transparent 60%),
      radial-gradient(60% 40% at 50% 100%, rgba(255,255,255,.04), transparent 60%);
    pointer-events:none; z-index:-1;
  }
}

/* Responsive tweaks */
@media (max-width: 1024px){
  .terms-card{ padding: 28px; }
  .page-header .subtitle{ max-width: 100%; }
}
@media (max-width: 768px){
  .terms-card{ padding: 22px; }
  .terms-section h2{ font-size: 1.45rem; }
}
@media (max-width: 480px){
  .terms-card{ padding: 18px; }
  .terms-section h2{ font-size: 1.35rem; }
}
