/* ==========================================================
   Torrance Concrete Leveling - Privacy Policy & Terms of Service
   ========================================================== */

.legal-hero { background: linear-gradient(160deg, #0b2a55 0%, #071d3d 100%); color: var(--white); padding: 46px 0 52px; position: relative; overflow: hidden; }
.legal-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(47, 141, 255, .12); }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero .breadcrumb { display: flex; gap: 8px; font-size: .9rem; color: #b9c6da; margin-bottom: 18px; }
.legal-hero .breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.legal-hero__row { display: flex; align-items: center; gap: 18px; }
.legal-hero__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--blue); }
.legal-hero__icon svg { width: 34px; height: 34px; color: var(--white); }
.legal-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; }
.legal-hero__meta { color: #b9c6da; font-size: .95rem; margin-top: 4px; }
.legal-hero__lead { max-width: 760px; margin-top: 20px; font-size: 1.08rem; color: #dbe4f1; }

.legal-layout { display: grid; grid-template-columns: 270px 1fr; gap: 50px; align-items: start; padding-top: 50px; padding-bottom: 70px; }

/* Table of contents */
.legal-toc { position: sticky; top: 84px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 20px; max-height: calc(100vh - 110px); overflow-y: auto; }
.legal-toc__title { font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--navy-dark); margin-bottom: 10px; }
.legal-toc ol { display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 6px; font-size: .9rem; color: var(--text); line-height: 1.35; border-left: 3px solid transparent; }
.legal-toc a:hover { background: var(--white); color: var(--blue); }
.legal-toc a.is-current { background: var(--white); color: var(--blue); border-left-color: var(--blue); font-weight: 500; }
.legal-toc__other { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; color: var(--blue); font-weight: 700; font-size: .92rem; }

/* Body */
.legal-body { max-width: 780px; }
.legal-section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { font-size: 1.6rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 12px; }
.legal-section h3 { font-size: 1.15rem; color: var(--navy-dark); margin: 18px 0 6px; }
.legal-section p { margin-bottom: 12px; line-height: 1.7; }
.legal-section ul { display: grid; gap: 8px; margin: 4px 0 14px; }
.legal-section ul li { position: relative; padding-left: 22px; line-height: 1.6; }
.legal-section ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.legal-section a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* At-a-glance box */
#summary { background: #eef4fd; border: 1px solid #cfe0f8; border-radius: 14px; padding: 24px 26px; }
#summary h2 { font-size: 1.35rem; }
.legal-glance li::before { background: var(--navy-dark) !important; }

.legal-contact { font-style: normal; background: #f6f8fb; border-left: 4px solid var(--blue); border-radius: 6px; padding: 16px 20px; line-height: 1.8; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 30px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-hero__icon { width: 52px; height: 52px; }
  .legal-section h2 { font-size: 1.35rem; }
  #summary { padding: 20px; }
}
