/* =====================================================================
   BOSTON FLOWERS — LEGAL PAGE — legal.css
   Структура: Hero (dark) → Tabs → Dark content → Ivory break → Wine CTA
   ===================================================================== */

#legal-hero { height: auto; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 2px; background: var(--rose); z-index: 600; pointer-events: none; transition: width .08s linear; }

.wa-float { position: fixed; bottom: 24px; right: 20px; z-index: 400; width: 52px; height: 52px; border-radius: 50%; background: var(--wine); display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 20px rgba(110,31,50,.45); opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease, background .3s; pointer-events: none; }
.wa-float.visible { opacity: 1; transform: translateY(0); pointer-events: all; animation: waFloat 3s ease-in-out 1s infinite; }
.wa-float:hover { background: #8B2640; animation: none; }
.wa-float svg { width: 24px; height: 24px; fill: #fff; }

.hero-bf { position: absolute; right: 15%; top: 50%; transform: translateY(-50%); font-family: 'Cormorant Garamond', serif; font-size: clamp(200px, 26vw, 380px); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--t1); opacity: .055; filter: blur(1.5px); pointer-events: none; user-select: none; z-index: 1; white-space: nowrap; }

/* ── HERO ── */
#legal-hero { position: relative; min-height: 56vh; display: flex; align-items: center; overflow: hidden; }
#legal-hero .hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0a1410 0%, #162018 30%, #1e1018 65%, #0e1510 100%); background-size: 400% 400%; animation: gradDrift 14s ease-in-out infinite; will-change: background-position; }
#legal-hero .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,19,21,.97) 0%, rgba(17,19,21,.2) 55%, transparent 100%); }
#legal-hero .glow-r { position: absolute; right: -60px; top: 40%; transform: translateY(-50%); width: 60%; height: 120%; background: radial-gradient(ellipse at center, rgba(200,155,147,.14) 0%, transparent 65%); filter: blur(80px); }
#legal-hero .glow-l { position: absolute; left: 5%; top: 15%; width: 350px; height: 350px; background: radial-gradient(ellipse at center, rgba(110,31,50,.12) 0%, transparent 70%); filter: blur(60px); }

.legal-hero-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 140px 48px 80px; width: 100%; }

.legal-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; opacity: 0; animation: fadeUp 1s ease .3s forwards; }

/* Двуцветный заголовок — t1 + rose (как на всех страницах) */
.legal-h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(52px, 6.5vw, 96px); font-weight: 300; line-height: 1.04; color: var(--t1); margin-bottom: 24px; opacity: 0; animation: fadeUp 1s ease .5s forwards; }
.legal-h1 em { font-style: italic; color: var(--rose); }

.legal-hero-sub { font-size: 15px; color: var(--t2); line-height: 1.7; opacity: 0; animation: fadeUp 1s ease .7s forwards; }
.legal-hero-sub a { color: var(--rose); text-decoration: none; }

/* ── TABS ── */
.legal-tabs { background: var(--ink); border-bottom: 1px solid var(--bd); position: sticky; top: 72px; z-index: 10; }
.legal-tabs .container { display: flex; }
.legal-tab { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--t2); text-decoration: none; padding: 20px 28px; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; white-space: nowrap; }
.legal-tab:hover { color: var(--t1); }
.legal-tab.is-active { color: var(--rose); border-bottom-color: var(--rose); }

/* ── DARK CONTENT ── */
.legal-dark { background: var(--olive-dim); padding: 80px 0 100px; }

.legal-cols { display: flex; flex-direction: column; gap: 80px; max-width: 800px; }

.legal-chapter { }

.legal-chapter-head { margin-bottom: 48px; }
.legal-chapter-head .lbl { display: block; margin-bottom: 16px; color: var(--rose); }

/* Двуцветный h2 — t1 + rose */
.legal-chapter-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 5vw, 64px); font-weight: 300; color: var(--t1); line-height: 1.06; margin-bottom: 16px; }
.legal-chapter-h em { font-style: italic; color: var(--rose); }

.legal-chapter-meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--t2); }

.legal-item { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--bd); }
.legal-item:last-child { border-bottom: none; }

.legal-item-h { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }

.legal-dark p { font-size: 15px; color: var(--t2); line-height: 1.8; margin-bottom: 12px; }
.legal-dark p:last-child { margin-bottom: 0; }
.legal-dark p strong { color: var(--t1); font-weight: 500; }
.legal-dark a { color: var(--rose); text-decoration: none; transition: opacity .2s; }
.legal-dark a:hover { opacity: .75; }

/* ── IVORY BREAK ── */
#legal-break { background: var(--ivory); padding: 96px 0; }

.legal-break-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.legal-break-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }

/* Двуцветный h2 на ivory — ink + wine */
.legal-break-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 300; color: var(--ink); line-height: 1.1; margin-bottom: 20px; }
.legal-break-h em { font-style: italic; color: var(--wine); }

.legal-break-txt { font-size: 15px; color: rgba(17,19,21,.65); line-height: 1.75; margin-bottom: 0; }

.legal-break-facts { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.legal-break-fact { display: flex; flex-direction: column; gap: 4px; }
.legal-break-fact-num { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; color: var(--wine); line-height: 1; }
.legal-break-fact-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(17,19,21,.5); }

.btn-wine-dark { display: inline-block; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; padding: 15px 34px; background: var(--wine); color: var(--ivory); transition: background .3s; }
.btn-wine-dark:hover { background: #8B2640; }

/* ── WINE CTA ── */
#legal-cta { position: relative; overflow: hidden; padding: 100px 0; text-align: center; }
.legal-cta-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a0810 0%, #3d0f1c 30%, #6E1F32 55%, #4a1520 75%, #1a0810 100%); background-size: 400% 400%; animation: gradDrift 14s ease infinite; }
.legal-cta-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.legal-cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 48px; }
.legal-cta-eyebrow { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,238,231,.5); margin-bottom: 24px; }

/* Двуцветный addr — ivory + rose */
.legal-cta-addr { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4.5vw, 56px); font-weight: 300; color: var(--ivory); line-height: 1.1; margin-bottom: 36px; }
.legal-cta-addr em { color: rgba(200,155,147,.85); font-style: italic; }

.legal-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── SCROLL REVEAL ── */
.r { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.r.d1 { transition-delay: .1s; }
.r.d2 { transition-delay: .2s; }
.r.d3 { transition-delay: .3s; }
.r.on { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 640px) {
  .legal-hero-inner { padding: max(120px, calc(var(--nav-h) + 40px)) max(20px, env(safe-area-inset-left)) 60px; }
  .legal-tabs { top: 60px; }
  .legal-tab { padding: 16px 16px; font-size: 10px; }
  .legal-dark { padding: 56px 0 72px; }
  .legal-break-inner { grid-template-columns: 1fr; gap: 40px; }
  .legal-break-facts { gap: 20px; }
  .legal-cta-inner { padding: 0 max(20px, env(safe-area-inset-left)); }
  .hero-bf { display: none; }
  .wa-float { bottom: 20px; right: 16px; width: 48px; height: 48px; }
}
