/* Reuse the local static Plus Jakarta instances (SIL OFL 1.1) so that older
   WebKit engines preserve readable weights; no third-party font is loaded. */
@font-face { font-family:"OuiBiiz Legal";font-style:normal;font-weight:400;font-display:swap;src:url("../../../packages/design-system/fonts/plus-jakarta-sans/travel-static-400.woff2") format("woff2"); }
@font-face { font-family:"OuiBiiz Legal";font-style:normal;font-weight:500;font-display:swap;src:url("../../../packages/design-system/fonts/plus-jakarta-sans/travel-static-500.woff2") format("woff2"); }
@font-face { font-family:"OuiBiiz Legal";font-style:normal;font-weight:600;font-display:swap;src:url("../../../packages/design-system/fonts/plus-jakarta-sans/travel-static-600.woff2") format("woff2"); }
@font-face { font-family:"OuiBiiz Legal";font-style:normal;font-weight:700;font-display:swap;src:url("../../../packages/design-system/fonts/plus-jakarta-sans/travel-static-700.woff2") format("woff2"); }
@font-face { font-family:"OuiBiiz Legal";font-style:normal;font-weight:800;font-display:swap;src:url("../../../packages/design-system/fonts/plus-jakarta-sans/travel-static-800.woff2") format("woff2"); }
body.legal-page { --body:"OuiBiiz Legal",sans-serif;--heading:"OuiBiiz Legal",sans-serif; }
/* Keep the common 72px header visible when following long legal sections. */
body.legal-page > header.ob-site-header { position: sticky; top: 0; z-index: 64; background:rgba(232,243,250,.985); }
/* Preserve the glass highlight while keeping the long text from showing
   through the navigation on engines without a working backdrop blur. */
body.legal-page .ob-app-nav { background:linear-gradient(125deg,#0b223b,#153b57); }
html:has(> body.legal-page) { scroll-padding-top: 0; }
.legal { width: min(calc(100% - 40px), var(--text-max, 740px)); margin: 3rem auto; overflow-wrap: anywhere; line-height: 1.8; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.2; }
.legal h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 1rem 0; font-weight: 700; line-height: 1.3; }
.legal h3 { font-size: 1.25rem; letter-spacing: -.015em; margin: 1.5rem 0 .5rem; }
.legal section { border-top: 1px solid var(--line); padding: 1.5rem 0; scroll-margin-top: calc(88px + env(safe-area-inset-top, 0px)); }
.legal p,.legal dd,.legal li { max-width: var(--text-max, 740px); }
.legal dl { display: grid; grid-template-columns: minmax(10rem,1fr) 2fr; gap: .9rem 1.4rem; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.legal-nav { justify-content: flex-start; flex-wrap: wrap; gap: .5rem 1.3rem; padding: 1rem 0 1.6rem; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: .4rem 0; text-decoration: underline; font-weight: 600; }
.legal .notice { border-left: 4px solid var(--blue); background: var(--pale); padding: 1rem; }
.legal button { min-height: 48px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; }
@media(max-width:620px) { .legal dl { display: block; } .legal dt { margin-top: 1rem; } }
.ouibiiz-consent { box-sizing: border-box; max-width: min(33rem,calc(100% - 40px)); max-height: 85dvh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: clamp(1rem,3vw,1.6rem); color: var(--text); background: var(--surface); line-height: 1.65; font-family: var(--body); }
.ouibiiz-consent::backdrop { background: rgb(16 42 67 / 50%); }
.ouibiiz-consent h2 { font-size: 1.55rem; font-weight: 700; }
.ouibiiz-consent label { display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0; }
.ouibiiz-consent label span span { display: block; }
.ouibiiz-consent > div { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.ouibiiz-consent button { flex: 1 1 9rem; min-height: 48px; padding: .55rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.map-setting { display:flex; align-items:center; gap:10px; min-height:48px; width:fit-content; font-weight: 600; cursor:pointer; }
.map-setting input { width:20px; height:20px; font-family:var(--body); accent-color:var(--blue); }
#roads-feedback:empty { display:none; }
