/* ========================================================================
   Core Editorial Documents (About, Terms, Privacy, Registry)
   Designed for scholarly legibility and premium archival feel.
   ======================================================================== */

.editorial-container {
  width: min(1120px, calc(100vw - 40px));
  margin-inline: auto;
}

.tf-core-doc {
  position: relative;
  max-width: 1120px;
  margin: clamp(56px, 8vw, 104px) auto;
  padding: 0;
  color: var(--tf-text);
  line-height: 1.7;
}

.tf-core-doc::before {
  content: "";
  position: absolute;
  top: -32px;
  left: 0;
  width: 74px;
  height: 3px;
  background: var(--tf-accent);
}

/* --- Document Header --- */
.tf-core-doc header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(28px, 5vw, 48px);
  border-bottom: 1px solid var(--tf-border-mid);
}

.tf-core-doc h1 {
  font-family: "Newsreader", serif;
  max-width: 780px;
  font-size: clamp(3rem, 6vw, 5.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0;
}

.tf-core-doc .tf-text-muted {
  font-family: "Manrope", sans-serif;
  font-style: normal;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--tf-text-soft);
  max-width: 420px;
  margin: 0 0 12px;
}

.tf-core-doc header .tf-text-muted:first-of-type {
  padding-top: 18px;
  border-top: 1px solid var(--tf-border);
}

.tf-core-doc header .tf-text-muted:last-child {
  color: var(--tf-text-dim);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* --- Sectioning --- */
.tf-core-doc section {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 12px;
  padding: clamp(26px, 4vw, 42px) 0;
  margin: 0;
  border-bottom: 1px solid var(--tf-border);
}

.tf-core-doc h2 {
  font-family: "Newsreader", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  border: 0;
  display: block;
  padding: 0;
}

.tf-core-doc h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--tf-text-dim);
  margin: 10px 0 12px;
  grid-column: 2;
}

/* --- Typography --- */
.tf-core-doc p {
  grid-column: 2;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--tf-text-soft);
  margin: 0 0 16px;
}

.tf-core-doc ul, .tf-core-doc ol {
  grid-column: 2;
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding-left: 0;
  counter-reset: tf-doc-item;
}

.tf-core-doc li {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--tf-text-soft);
  margin: 0;
  padding-left: 28px;
  position: relative;
}

.tf-core-doc ul li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--tf-accent);
  background: var(--tf-accent-glow);
}

.tf-core-doc ol li {
  counter-increment: tf-doc-item;
}

.tf-core-doc ol li::before {
  content: counter(tf-doc-item, decimal-leading-zero);
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--tf-accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tf-core-doc strong {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tf-text);
}

/* --- Links & Utils --- */
.tf-core-doc a {
  color: var(--tf-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color var(--tf-t) var(--tf-ease), text-decoration-thickness var(--tf-t) var(--tf-ease);
}

.tf-core-doc a:hover {
  color: var(--tf-text);
  text-decoration-thickness: 2px;
}

/* --- Special Sections --- */
.tf-core-doc .editorial-note {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  column-gap: clamp(28px, 5vw, 72px);
  padding: clamp(26px, 4vw, 42px) 0;
  margin: 0;
  border-bottom: 1px solid var(--tf-border);
  color: var(--tf-text);
  font-family: "Newsreader", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-style: italic;
  line-height: 1.35;
}

.tf-core-doc .editorial-note::before {
  content: "Editorial Note";
  color: var(--tf-accent);
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tf-core-doc .editorial-note > * {
  grid-column: 2;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .editorial-container {
    width: min(100% - 28px, 1120px);
  }

  .tf-core-doc {
    margin: 44px auto;
  }

  .tf-core-doc::before {
    top: -20px;
    width: 56px;
  }

  .tf-core-doc header,
  .tf-core-doc section,
  .tf-core-doc .editorial-note {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tf-core-doc h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .tf-core-doc .tf-text-muted {
    font-size: 0.92rem;
  }

  .tf-core-doc p,
  .tf-core-doc ul,
  .tf-core-doc ol,
  .tf-core-doc h3,
  .tf-core-doc .editorial-note > * {
    grid-column: 1;
  }
}
