/* ==========================================================
   DT PROPERTY IMPROVEMENTS
   Privacy Policy + Customer Terms
   Loads after site.css and inner.css
   ========================================================== */

.legal-updated { margin-top: 1.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.legal-doc { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }

/* Contents list */
.legal-toc { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; padding-right: 0.5rem; scrollbar-width: thin; }
.legal-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-dark); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: "+"; font-size: 1.1rem; font-weight: 400; letter-spacing: 0; }
.legal-toc[open] summary::after { content: "–"; }
.legal-toc ol { margin: 0; padding: 0.6rem 0 0; list-style: none; }
.legal-toc li a { display: block; padding: 0.42rem 0; font-size: 0.86rem; line-height: 1.35; color: var(--text-muted); text-decoration: none; transition: color 0.2s, padding-left 0.25s var(--ease); }
.legal-toc li a:hover { color: var(--text); padding-left: 0.4rem; }

/* The document */
.legal-body { max-width: 46rem; }
.legal-section { scroll-margin-top: 7rem; padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-dark); }
.legal-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-section h2 { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.legal-num { flex: none; min-width: 2.2rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; color: var(--red); transform: translateY(-0.35em); }
.legal-section p { margin-bottom: 1rem; color: #3d3a35; line-height: 1.75; overflow-wrap: anywhere; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-section a { color: var(--red); text-underline-offset: 3px; }
.legal-section h3 { margin: 1.6rem 0 0.5rem; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }
.legal-section h3 + p { margin-top: 0; }

.legal-list { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.legal-list li { position: relative; padding: 0.3rem 0 0.3rem 1.7rem; color: #3d3a35; line-height: 1.65; overflow-wrap: anywhere; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 0.8rem; height: 1px; background: var(--red); }

/* Highlighted sections (the important ones) */
.legal-highlight { padding: clamp(1.4rem, 3.5vw, 2.2rem); background: var(--card); border: 1px solid var(--line-dark); border-left: 3px solid var(--red); }
.legal-highlight-label { margin-bottom: 0.8rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.legal-section.legal-highlight { margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal-section.legal-highlight:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; max-height: none; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line-dark); }
  .legal-toc summary { padding-bottom: 0; border-bottom: 0; }
  .legal-toc[open] summary { padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-dark); }
}

@media print {
  .site-header, .menu, .wa, .footer, .legal-toc, .page-hero .eyebrow { display: none !important; }
  .page-hero { background: #fff !important; padding: 1rem 0 !important; border: 0; }
  .page-hero h1, .page-hero .line, .page-hero .line span { color: #000 !important; opacity: 1 !important; transform: none !important; }
  .page-lead { color: #333 !important; }
  .legal-layout { display: block; }
}