/* ============================================================
   WinnerSoft — legal.css
   Стили для: privacy-policy, terms-of-service, contacts
   ============================================================ */

/* ── LEGAL PAGES LAYOUT ── */
.legal-page {
    min-height: 80vh;
    padding: clamp(40px, 6vw, 80px) 0 80px;
  }
  
  .legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
  }
  
  /* ── HEADER ── */
  .legal-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
  }
  
  .legal-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(245,197,24,.1); border: 1px solid rgba(245,197,24,.25);
    padding: 6px 16px; border-radius: 100px;
    font-size: 11px; color: var(--gold); font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
  }
  
  .legal-header h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900; letter-spacing: -1.5px;
    margin-bottom: 14px; color: var(--text);
  }
  
  .legal-meta {
    font-size: 14px; color: var(--muted);
  }
  .legal-meta strong { color: var(--text); }
  
  /* ── INTRO BOX ── */
  .legal-intro {
    background: linear-gradient(135deg, rgba(45,17,85,.5), rgba(30,13,56,.5));
    border: 1px solid var(--border); border-left: 3px solid var(--gold);
    border-radius: 12px; padding: 20px 24px;
    font-size: 15px; color: var(--text); line-height: 1.7;
    margin-bottom: 40px;
  }
  .legal-intro strong { color: var(--gold); }
  
  /* ── SECTIONS ── */
  .legal-section {
    margin-bottom: 40px;
  }
  
  .legal-section h2 {
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: 800; color: var(--text);
    margin-bottom: 14px; letter-spacing: -.5px;
    display: flex; align-items: center; gap: 10px;
  }
  .legal-section h2::before {
    content: '';
    width: 4px; height: 20px; flex-shrink: 0;
    background: var(--gold-gradient); border-radius: 2px;
  }
  
  .legal-section p {
    font-size: 15px; color: var(--muted);
    line-height: 1.75; margin-bottom: 14px;
  }
  .legal-section p:last-child { margin-bottom: 0; }
  .legal-section p strong { color: var(--text); }
  .legal-section a { color: var(--gold); text-decoration: none; transition: opacity .2s; }
  .legal-section a:hover { opacity: .8; text-decoration: underline; }
  
  .legal-section ul {
    list-style: none; margin: 12px 0 16px;
    display: flex; flex-direction: column; gap: 10px;
  }
  .legal-section ul li {
    font-size: 14px; color: var(--muted); line-height: 1.6;
    padding-left: 20px; position: relative;
  }
  .legal-section ul li::before {
    content: '—';
    position: absolute; left: 0;
    color: var(--gold); font-weight: 700;
  }
  .legal-section ul li strong { color: var(--text); }
  
  /* ── TABLE ── */
  .legal-table-wrap {
    overflow-x: auto; margin: 16px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
  }
  .legal-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
  }
  .legal-table thead tr {
    background: rgba(45,17,85,.6);
  }
  .legal-table th {
    padding: 12px 16px; text-align: left;
    color: var(--gold); font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
    white-space: nowrap;
  }
  .legal-table td {
    padding: 12px 16px; color: var(--muted); line-height: 1.5;
    border-top: 1px solid var(--border);
  }
  .legal-table tbody tr:hover td { background: rgba(255,255,255,.02); }
  
  /* ── CONTACT BOX ── */
  .legal-contact-box {
    background: linear-gradient(135deg, rgba(45,17,85,.5), rgba(30,13,56,.5));
    border: 1px solid rgba(245,197,24,.2); border-radius: 14px;
    padding: 20px 24px; margin-top: 16px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .legal-contact-box p { margin-bottom: 0; font-size: 14px; }
  .legal-contact-box a { color: var(--gold); text-decoration: none; }
  .legal-contact-box a:hover { text-decoration: underline; }
  
  /* ════════════════════════════════════
     CONTACTS PAGE
     ════════════════════════════════════ */
  
  .contacts-hero {
    position: relative; overflow: hidden;
    padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
    text-align: center;
  }
  .contacts-title {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900; letter-spacing: -1.5px;
    margin-bottom: 16px; color: var(--text);
  }
  .contacts-title .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .contacts-sub {
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--muted); max-width: 520px; margin: 0 auto;
    font-weight: 300; line-height: 1.7;
  }
  
  /* ── CONTACTS GRID ── */
  .contacts-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: clamp(24px, 4vw, 56px); align-items: start;
  }
  
  /* ── CONTACT CARDS ── */
  .contacts-info { display: flex; flex-direction: column; gap: 16px; }
  
  .contact-card {
    background: linear-gradient(135deg, rgba(45,17,85,.7), rgba(30,13,56,.7));
    border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 22px;
    display: flex; align-items: flex-start; gap: 16px;
    transition: all .3s;
  }
  .contact-card:hover {
    border-color: rgba(245,197,24,.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
  }
  .cc-icon {
    font-size: 28px; flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 12px;
    background: rgba(245,197,24,.08);
    display: flex; align-items: center; justify-content: center;
  }
  .cc-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
  .cc-body p  { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
  .cc-body a  { font-size: 14px; color: var(--gold); text-decoration: none; font-weight: 600; transition: opacity .2s; }
  .cc-body a:hover { opacity: .8; }
  .cc-highlight {
    display: inline-block;
    font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 900;
    background: var(--gold-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
  }
  
  /* ── DOC LINKS ── */
  .contacts-docs {
    display: flex; gap: 12px; flex-wrap: wrap;
  }
  .doc-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    color: var(--muted); text-decoration: none;
    font-size: 13px; font-weight: 500;
    transition: all .2s;
  }
  .doc-link:hover { border-color: rgba(245,197,24,.3); color: var(--gold); }
  
  /* ════════════════════════════════════
     RESPONSIVE
     ════════════════════════════════════ */
  
  @media (max-width: 768px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .contact-card  { padding: 16px 18px; }
    .cc-icon       { width: 44px; height: 44px; font-size: 22px; }
    .legal-header  { margin-bottom: 36px; padding-bottom: 28px; }
    .legal-section { margin-bottom: 28px; }
  }
  
  @media (max-width: 480px) {
    .legal-intro { padding: 16px 18px; font-size: 14px; }
    .legal-contact-box { padding: 16px 18px; }
    .legal-table th,
    .legal-table td { padding: 10px 12px; }
    .contact-card { flex-direction: column; gap: 12px; }
    .cc-icon { width: 40px; height: 40px; font-size: 20px; }
    .contacts-docs { flex-direction: column; }
    .doc-link { justify-content: center; }
  }
  
  /* ════════════════════════════════════
     FLOATING TELEGRAM BUTTON
     (глобально — на всех страницах)
     ════════════════════════════════════ */
  .tg-float {
    position: fixed;
    bottom: clamp(20px, 4vw, 32px);
    right: clamp(16px, 3vw, 28px);
    z-index: 900;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; text-decoration: none;
    box-shadow: 0 6px 24px rgba(42,171,238,.5), 0 2px 8px rgba(0,0,0,.3);
    transition: all .25s;
    animation: tgPulse 3s ease-in-out infinite;
  }
  .tg-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 10px 36px rgba(42,171,238,.65), 0 4px 12px rgba(0,0,0,.3);
    animation: none;
  }
  .tg-float:active { transform: scale(.96); }
  @keyframes tgPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(42,171,238,.5), 0 0 0 0 rgba(42,171,238,.4); }
    50%       { box-shadow: 0 6px 24px rgba(42,171,238,.5), 0 0 0 10px rgba(42,171,238,.0); }
  }
  
  /* tooltip при hover */
  .tg-float::before {
    content: 'Написать в Telegram';
    position: absolute; right: 66px;
    background: rgba(10,3,22,.95); color: #fff;
    font-family: 'Open Sans', sans-serif; font-size: 12px; font-weight: 500;
    padding: 6px 12px; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
    border: 1px solid rgba(42,171,238,.2);
  }
  .tg-float:hover::before { opacity: 1; }
  
  /* ── TG card special style (contacts page) ── */
  .contact-card--tg {
    border-color: rgba(42,171,238,.25);
    position: relative;
  }
  .contact-card--tg:hover { border-color: rgba(42,171,238,.5); }
  .contact-card--tg .cc-icon {
    background: rgba(42,171,238,.12);
  }
  .tg-badge {
    position: absolute; top: 20px; right: 20px;
    padding: 6px 14px; border-radius: 100px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff; font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 700; text-decoration: none;
    transition: all .2s; white-space: nowrap;
  }
  .tg-badge:hover { transform: scale(1.05); opacity: .9; }
  
  @media (max-width: 480px) {
    .tg-float { width: 50px; height: 50px; font-size: 22px; bottom: 20px; right: 16px; }
    .tg-float::before { display: none; } /* скрываем tooltip на мобиле */
    .tg-badge { position: static; margin-top: 10px; display: inline-block; }
    .contact-card--tg { flex-wrap: wrap; }
  }