/* DELF Foundation – legal pages (privacy, cookies, terms, anti-fraud). Extends css/home.css (load it first). */

/* Page header: compact navy band with the brand marigold edge */
.dl .page-head { background: var(--navy); color: #fff; padding: clamp(52px, 7vw, 96px) 0 clamp(40px, 5vw, 68px); border-bottom: 6px solid var(--marigold); }
.dl .page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.07; letter-spacing: -.018em; color: #fff; margin: 0 0 14px; }
.dl .page-head__lede { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 0 14px; }
.dl .page-head__meta { margin: 0; font-size: 15px; font-weight: 600; color: var(--marigold); }

/* Layout: contents list beside the text */
.dl .legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 992px) { .dl .legal-wrap { grid-template-columns: 270px minmax(0, 1fr); gap: 72px; } }

/* Contents */
.dl .toc { align-self: start; max-width: none; }
@media (min-width: 992px) { .dl .toc { position: sticky; top: 108px; } }
.dl .toc summary { list-style: none; cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--navy); display: flex; justify-content: space-between; align-items: center; }
.dl .toc summary::-webkit-details-marker { display: none; }
.dl .toc summary::after { content: ""; width: 9px; height: 9px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.dl .toc details[open] summary::after { transform: rotate(-135deg); }
@media (min-width: 992px) { .dl .toc summary { cursor: default; pointer-events: none; } .dl .toc summary::after { display: none; } }
.dl .toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.dl .toc li { margin: 0; }
.dl .toc a { display: block; padding: 8px 0 8px 12px; border-left: 3px solid transparent; color: var(--ink); font-size: 15px; line-height: 1.4; text-decoration: none; transition: border-color .15s, color .15s; }
.dl .toc a:hover { color: var(--navy); border-left-color: var(--rule); }
.dl .toc a[aria-current="true"] { color: var(--navy); font-weight: 700; border-left-color: var(--marigold); }
.dl .toc a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* Reading text */
.dl .legal { max-width: 72ch; }
.dl .legal h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.25; color: var(--navy); margin: 56px 0 14px; padding-top: 28px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; text-wrap: balance; }
.dl .legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.dl .legal h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 28px 0 8px; }
.dl .legal p { font-size: 1.04rem; line-height: 1.75; max-width: none; margin: 0 0 16px; }
.dl .legal ul { list-style: none; margin: 0 0 20px; padding: 0; }
.dl .legal ul li { position: relative; padding: 7px 0 7px 26px; line-height: 1.7; }
.dl .legal ul li::before { content: ""; position: absolute; left: 4px; top: 1.18em; width: 9px; height: 9px; background: var(--marigold); }
.dl .legal a { overflow-wrap: anywhere; }
.dl .legal__contact { font-style: normal; margin: 0 0 18px; padding: 18px 20px; border-left: 6px solid var(--marigold); background: var(--fog); line-height: 1.7; max-width: none; }

/* Cookie table */
.dl .table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--rule); }
.dl .cookie-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; }
.dl .cookie-table th, .dl .cookie-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.55; }
.dl .cookie-table thead th { background: var(--fog); color: var(--navy); font-weight: 700; }
.dl .cookie-table tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.dl .cookie-table tbody tr:last-child th, .dl .cookie-table tbody tr:last-child td { border-bottom: 0; }