/* ==========================================================================
   Legal / policy document styles — layers on top of style.css (MARQUEE)
   ========================================================================== */
.doc-hero {
  position: relative; overflow: hidden; color: var(--dtv-text-inv);
  background: var(--dtv-stage);
  padding-block: clamp(2.4rem, 6vw, 4rem) clamp(2.4rem, 6vw, 3.6rem);
}
.doc-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: var(--dtv-fs-sm); color: var(--dtv-text-inv-soft); margin-bottom: 1rem; }
.doc-breadcrumb a { color: var(--dtv-gold); }
.doc-breadcrumb a:hover { color: #fff; }
.doc-breadcrumb span { opacity: .6; }
.doc-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.doc-hero__meta { margin-top: .9rem; color: var(--dtv-text-inv-soft); font-size: var(--dtv-fs-sm); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.doc-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.doc-hero__meta svg { width: 1.05em; height: 1.05em; color: var(--dtv-gold); }

.doc-wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); padding-block: clamp(2.4rem, 5vw, 4rem); }
@media (max-width: 900px) { .doc-wrap { grid-template-columns: 1fr; } }

.doc-toc { position: sticky; top: 96px; align-self: start; }
.doc-toc h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dtv-text-soft); margin-bottom: .9rem; font-family: "D-DIN", sans-serif; }
.doc-toc ol { list-style: none; display: grid; gap: .1rem; }
.doc-toc a { display: block; padding: .5rem .7rem; border-radius: 9px; font-size: .9rem; color: var(--dtv-text-soft); border-left: 2px solid transparent; transition: background .2s var(--dtv-ease), color .2s, border-color .2s; }
.doc-toc a:hover { background: var(--dtv-ice); color: var(--dtv-navy); border-color: var(--dtv-blue); }
@media (max-width: 900px) { .doc-toc { position: static; } }

.doc-body { max-width: 74ch; }
.doc-body > section { padding-top: 1rem; margin-bottom: 2.2rem; }
.doc-body h2 { font-size: var(--dtv-fs-h3); color: var(--dtv-navy); margin-bottom: .7rem; scroll-margin-top: 96px; display: flex; gap: .6rem; align-items: baseline; text-transform: none; font-family: "D-DIN", sans-serif; letter-spacing: 0; }
.doc-body h2 .doc-num { font-family: "D-DIN Exp", sans-serif; color: var(--dtv-blue); font-size: .9em; }
.doc-body h3 { font-size: 1.08rem; margin: 1.2rem 0 .5rem; color: var(--dtv-navy); }
.doc-body p { margin-bottom: 1rem; color: var(--dtv-text); }
.doc-body ul, .doc-body ol.doc-list { margin: 0 0 1.1rem 0; display: grid; gap: .55rem; }
.doc-body ul li { position: relative; padding-left: 1.5rem; color: var(--dtv-text); }
.doc-body ul li::before { content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--dtv-gold), var(--dtv-blue)); }
.doc-body ol.doc-list { counter-reset: dl; padding-left: 0; list-style: none; }
.doc-body ol.doc-list li { position: relative; padding-left: 2rem; }
.doc-body ol.doc-list li::before { counter-increment: dl; content: counter(dl); position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 7px; background: var(--dtv-ice); color: var(--dtv-blue); font-weight: 700; font-size: .8rem; display: grid; place-items: center; font-family: "D-DIN", sans-serif; }
.doc-body a { color: var(--dtv-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--dtv-line-strong); }
.doc-body a:hover { text-decoration-color: var(--dtv-blue); }
.doc-body strong { color: var(--dtv-navy); }

.doc-callout {
  border-radius: var(--dtv-r-md); padding: 1.1rem 1.3rem; margin: 1.4rem 0;
  background: var(--dtv-mist); border: 1px solid var(--dtv-line); border-left: 4px solid var(--dtv-blue);
  font-size: .95rem; color: var(--dtv-text-soft);
}
.doc-callout strong { color: var(--dtv-navy); }
.doc-callout--warn { border-left-color: var(--dtv-gold-deep); background: #FFF9E6; }

.doc-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .93rem; }
.doc-table th, .doc-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--dtv-line); vertical-align: top; }
.doc-table th { font-family: "D-DIN", sans-serif; color: var(--dtv-navy); background: var(--dtv-mist); }
.doc-scroll { overflow-x: auto; }

.doc-contact { margin-top: 1.6rem; padding: 1.3rem 1.4rem; border-radius: var(--dtv-r-md); background: var(--dtv-mist); border: 1px solid var(--dtv-line); }
.doc-contact b { color: var(--dtv-navy); }

/* ── Wide tables must scroll, not push the page ───────────────────────────
   .doc-table is width:100% but its columns have a natural minimum, so on the
   cost and comparison pages it measured 477px inside a 375px screen and the
   whole document scrolled sideways.

   The table becomes its own scroll container. display:block is what makes a
   <table> honour overflow-x at all; min-width keeps the columns from being
   crushed into unreadable slivers, so it scrolls instead of wrapping every
   cell onto four lines. */
@media (max-width: 640px) {
  .doc-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc-table > tbody, .doc-table > thead { display: table; width: 100%; min-width: 460px; }
}
