/* ═══════════════════════════════════════════════
   LEGAL — privacy policy and terms.
   Read mode: the visitor is here to understand
   something, so structure and measure outrank
   expression. Same palette and type as the rest of
   the site, none of the motion.
   ═══════════════════════════════════════════════ */

.legal-page{background:var(--cream); color:var(--ink)}

.legal{
  max-width:none; margin:0 auto;
  padding:clamp(100px,14vh,150px) 22px clamp(60px,9vh,90px);
  width:min(680px, 100%);
}

.legal__title{
  margin:0 0 10px; font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(30px,5vw,44px); line-height:1.15; color:var(--ink);
  text-wrap:balance;
}
.legal__meta{
  margin:0 0 34px; color:var(--ink-soft);
  font:500 11.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase;
}

/* the hand-off note: this is for Femora, not for the visitor, so it reads as
   an annotation rather than part of the document */
.legal__note{
  margin:0 0 42px; padding:18px 20px;
  background:rgba(231,208,207,.42);            /* --blush */
  border:1px solid rgba(136,1,42,.14); border-radius:12px;
}
.legal__note p{margin:0; font-size:13.5px; line-height:1.65; color:var(--ink-soft)}
.legal__note strong{color:var(--wine)}

.legal__sec{margin:0 0 34px}
.legal__sec h2{
  margin:0 0 12px; font-family:var(--serif); font-style:italic; font-weight:400;
  font-size:clamp(19px,2.6vw,23px); line-height:1.3; color:var(--wine);
}
/* subsection headings — added for the orders section, which is long enough
   that a wall of paragraphs would be unreadable */
.legal__sec h3{
  margin:26px 0 8px;
  font:600 12px/1.3 var(--sans);
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--wine);
}
.legal__sec h3:first-of-type{margin-top:18px}

.legal__sec p, .legal__sec li{
  margin:0 0 12px; font-size:15px; line-height:1.75; color:var(--ink-soft);
  max-width:68ch;                      /* comfortable measure for reading */
}
.legal__sec ul{margin:0 0 12px; padding-left:20px}
.legal__sec li{margin-bottom:7px}
.legal__sec strong{color:var(--ink); font-weight:600}
.legal__sec a{color:var(--wine); text-decoration:underline; text-underline-offset:3px}
.legal__sec a:hover{text-decoration-thickness:2px}

/* every blank Femora still has to fill, marked so none is missed */
.legal__todo{
  background:rgba(227,209,193,.75); color:var(--wine);   /* --sand */
  padding:1px 6px; border-radius:5px;
  font-weight:600; font-size:.94em;
}

.legal__badge{
  display:inline-block; vertical-align:middle; margin-left:8px;
  background:rgba(204,158,152,.3); color:var(--wine);    /* --rose */
  border-radius:99px; padding:4px 10px;
  font:600 11px/1 var(--sans); letter-spacing:.16em; text-transform:uppercase;
  font-style:normal;
}
.legal__sec--pending{
  padding:18px 20px; border-radius:12px;
  background:rgba(231,208,207,.26); border:1px solid rgba(136,1,42,.12);
}

.legal__table{
  width:100%; border-collapse:collapse; margin:0 0 14px;
  font-size:13.5px; line-height:1.6;
}
.legal__table th, .legal__table td{
  text-align:left; vertical-align:top; padding:10px 12px;
  border-bottom:1px solid rgba(136,1,42,.12);
}
.legal__table th{
  color:var(--wine); font-weight:600; font-size:11px;
  letter-spacing:.12em; text-transform:uppercase;
  border-bottom-color:rgba(136,1,42,.28);
}
.legal__table td{color:var(--ink-soft)}
@media (max-width:620px){
  /* a four-column table cannot hold at this width — reflow to labelled rows */
  .legal__table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
  .legal__table tr{display:block; padding:12px 0; border-bottom:1px solid rgba(136,1,42,.12)}
  .legal__table td{display:block; border:0; padding:3px 0}
  .legal__table td::before{
    content:attr(data-l) ' '; color:var(--wine); font-weight:600;
    font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  }
}

/* ── footer ── */
.legal-foot{
  border-top:1px solid rgba(136,1,42,.12);
  padding:34px 22px 44px; text-align:center; color:var(--wine);
}
.legal-foot .wordmark{font-size:21px; margin:0 auto 14px}
.legal-foot__links{display:flex; justify-content:center; flex-wrap:wrap; gap:20px; margin-bottom:14px}
.legal-foot__links a{
  color:var(--wine); text-decoration:none; opacity:.78;
  font:500 11.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase;
  transition:opacity .25s;
}
.legal-foot__links a:hover{opacity:1; text-decoration:underline; text-underline-offset:4px}
.legal-foot__links a.is-current{opacity:1; text-decoration:underline; text-underline-offset:4px}
.legal-foot p{margin:0; font-size:12px; color:var(--ink-soft)}

/* social icons – under the footer links */
.legal-foot__social{display:flex; justify-content:center; gap:12px; margin:4px 0 18px; padding:0; list-style:none}
.legal-foot__social li[hidden]{display:none}
.legal-foot__social a{
  display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  color:var(--wine); border:1px solid rgba(136,1,42,.22);
  transition:background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.legal-foot__social a:hover{background:var(--wine); border-color:var(--wine); color:var(--cream)}
.legal-foot__social svg{width:20px; height:20px; display:block}
@media (prefers-reduced-motion:reduce){ .legal-foot__social a{transition:none} }

/* the „Бисквитки“ button sits among links – make it look like one of them */
.legal-foot__links .cc-reopen{
  appearance:none; background:none; border:0; padding:0; cursor:pointer;
  color:var(--wine); opacity:.78; text-decoration:none;
  font:500 11.5px/1 var(--sans); letter-spacing:.14em; text-transform:uppercase;
  transition:opacity .25s;
}
.legal-foot__links .cc-reopen:hover{opacity:1; text-decoration:underline; text-underline-offset:4px}
