/* Legal documents (privacy, cookies, terms), in the site's look: paper title area with tabs between the documents,
   a bento row of key facts, then numbered clauses (number and title left, text right). */
.legal-page{background:var(--paper);color:var(--ink)}
.legal-page .header{position:relative}
.legal-call{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-left:auto;padding:10px 16px;background:var(--wine);color:var(--paper);font-weight:600;clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%)}
.legal-call svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:1001px){.legal-call{display:none}}

.legal-intro-area{padding:24px var(--gutter) 40px}
.legal-tabs{display:flex;gap:4px;width:fit-content;max-width:100%;margin-bottom:36px;padding:4px;background:#e9e2d8;overflow-x:auto;scrollbar-width:none}
.legal-tabs::-webkit-scrollbar{display:none}
.legal-tab{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;color:var(--ink);font-size:14.5px;font-weight:500;white-space:nowrap;transition:background .25s,color .25s}
.legal-tab.is-current{background:var(--wine);color:var(--paper);clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,0 100%)}
@media(hover:hover){.legal-tab:not(.is-current):hover{background:#fff8;color:var(--wine)}}
.legal-intro-area h1{max-width:14ch;margin:0;color:var(--wine);font-size:clamp(46px,10.5vw,104px);line-height:.96;letter-spacing:-.045em}
.legal-intro{max-width:62ch;margin:24px 0 0;font-size:18px;line-height:1.6}
.legal-intro a{color:var(--wine)}

/* Bento facts */
.legal-facts{display:grid;gap:10px;margin-top:36px}
.legal-fact{display:flex;flex-direction:column;gap:6px;min-width:0;padding:var(--card-pad,20px);background:#fff8;border:1px solid #d8c7b48c}
.legal-fact:first-child{background:var(--wine);border-color:var(--wine);color:var(--paper);clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%)}
.legal-fact-label{font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#7d6f62}
.legal-fact:first-child .legal-fact-label,.legal-fact:first-child span{color:var(--sand)}
.legal-fact strong{font:700 clamp(19px,2vw,24px)/1.2 'Archivo',sans-serif;letter-spacing:-.02em;overflow-wrap:anywhere}
.legal-fact span{font-size:14px;line-height:1.5;color:#5b5550;overflow-wrap:anywhere}
.legal-fact a{color:inherit}
@media(min-width:701px){.legal-facts{grid-template-columns:1.3fr 1fr 1fr}}
/* 404: the facts row holds the way back. */
a.legal-fact{justify-content:center;min-height:72px;color:inherit;text-decoration:none;transition:background .25s,border-color .25s}
@media(hover:hover){a.legal-fact:not(:first-child):hover{background:#fff;border-color:var(--wine)}}
@media(min-width:701px){a.legal-fact{min-height:96px}}
.not-found-page .legal-intro-area{padding-bottom:72px}

/* Numbered clauses */
.legal-clauses{margin:0;padding:8px var(--gutter) 96px;list-style:none;counter-reset:none}
.legal-clause{display:grid;gap:14px;padding:32px 0;border-top:1px solid #d8c7b4a6;scroll-margin-top:24px}
.legal-clause-head{min-width:0}
.legal-clause h2{margin:0;font-size:clamp(24px,5.4vw,32px);line-height:1.1;letter-spacing:-.035em;color:var(--ink)}
.legal-clause-body{min-width:0;max-width:68ch}
.legal-clause-body p,.legal-clause-body li{font-size:16px;line-height:1.7}
.legal-clause-body p{margin:0 0 12px}
.legal-clause-body>:last-child{margin-bottom:0}
.legal-clause-body ul{margin:0 0 12px;padding:0;list-style:none}
.legal-clause-body li{position:relative;margin:6px 0;padding-left:22px}
.legal-clause-body li:before{content:'';position:absolute;left:0;top:.62em;width:9px;height:9px;background:var(--wine);clip-path:polygon(0 0,calc(100% - 3px) 0,100% 3px,100% 100%,0 100%)}
.legal-clause-body a{color:var(--wine);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media(min-width:1001px){
 .legal-clause{grid-template-columns:minmax(260px,4fr) 8fr;gap:clamp(40px,6vw,96px);padding:40px 0}
 .legal-clause-head{position:sticky;top:24px;align-self:start}
  .legal-clause-body p,.legal-clause-body li{font-size:17px}
}
/* The closing section follows paper here (on the home page it follows the beige location band). */
.legal-page .final-cta:before{background:var(--wine)}
.legal-page .final-cta{background:linear-gradient(to bottom,var(--paper) var(--sweep-height),var(--wine) var(--sweep-height))}
/* Phones: the three tabs share the width (two lines if needed) and the facts sit as a small bento. */
@media(max-width:700px){
 .legal-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;overflow:visible}
 .legal-tab{justify-content:center;padding:8px 6px;font-size:13.5px;line-height:1.2;text-align:center;white-space:normal}
 .legal-facts{grid-template-columns:1fr 1fr}
 .legal-fact:first-child{grid-column:1/-1}
 .legal-fact strong{font-size:17px}
 .legal-fact span{font-size:13px}
}
