/* ============================================================
   Loow Taxi — ქვეგვერდები: ჩვენ შესახებ, წესები, კონფიდენციალურობა,
   მიწოდება/გაუქმება/დაბრუნება. style.css-ის შემდეგ ჩაიტვირთება.
   ============================================================ */

/* ---------- გვერდის სათაურის ზოლი ---------- */
.doc-hero {
  padding: 150px 0 50px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 18% -10%, var(--violet-soft), transparent 70%),
    var(--bg);
}
.doc-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.14;
  letter-spacing: -1.2px;
  font-weight: 800;
  margin-top: 14px;
}
.doc-lede {
  color: var(--muted);
  max-width: 660px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
}
.doc-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.doc-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
}
.doc-crumb a { transition: color .2s; }
.doc-crumb a:hover { color: var(--violet); }

/* ---------- განლაგება: სარჩევი + ტექსტი ---------- */
.doc-main { padding: 60px 0 100px; }
.doc-wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.doc-wrap.no-toc { grid-template-columns: minmax(0, 1fr); }
.doc-toc {
  position: sticky;
  top: 96px;
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.doc-toc h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.doc-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 0;
  line-height: 1.4;
  transition: color .2s;
}
.doc-toc a:hover { color: var(--violet); }

/* ---------- იურიდიული ტექსტის ტიპოგრაფია ---------- */
.legal-doc { max-width: 780px; }
.legal-doc h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 56px 0 10px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 96px;
  line-height: 1.4;
}
.legal-doc > h2:first-child,
.legal-doc > *:first-child { margin-top: 0; }
.legal-doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 34px 0 12px;
  scroll-margin-top: 96px;
  line-height: 1.45;
}
.legal-doc h3 .cl-num {
  display: inline-block;
  min-width: 34px;
  color: var(--violet);
  font-weight: 800;
}
.legal-doc p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
  margin-bottom: 13px;
}
.legal-doc p.clause { padding-left: 46px; position: relative; }
.legal-doc p.clause .cl-no {
  position: absolute;
  left: 0;
  top: 1px;
  width: 42px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13.5px;
}
.legal-doc p.def {
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
.legal-doc p.sub {
  padding-left: 46px;
  color: var(--white);
  font-size: 14.5px;
}
.legal-doc strong { color: var(--white); font-weight: 700; }
.legal-doc a { color: var(--violet); border-bottom: 1px solid transparent; transition: border-color .2s; }
.legal-doc a:hover { border-bottom-color: var(--violet); }
.legal-doc ul { margin: 0 0 16px; padding-left: 46px; list-style: none; }
.legal-doc li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
  margin-bottom: 9px;
  position: relative;
  padding-left: 18px;
}
.legal-doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.legal-doc li strong { color: var(--white); }

/* ---------- LOOW Send: მთავარი პირობები, აკრძალული ნივთები, ჩაუბარებელი ამანათის გზა ---------- */
.legal-doc svg { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}
.send-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.send-fact svg { width: 22px; height: 22px; stroke: var(--violet); margin-bottom: 8px; }
.send-fact strong { font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; color: var(--white); }
.send-fact span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.legal-doc ul.ban-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 46px;
  margin: 4px 0 18px;
}
.legal-doc .ban-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.legal-doc .ban-grid li::before,
.legal-doc .send-flow li::before { display: none; }
.legal-doc .ban-grid b { color: var(--white); font-weight: 700; }
.legal-doc .ban-grid li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ban-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, .12);
}
.ban-ico svg { width: 18px; height: 18px; stroke: #ef4444; }

.legal-doc ol.send-flow {
  list-style: none;
  counter-reset: sf;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 18px 46px;
  padding: 0;
}
.legal-doc .send-flow li {
  counter-increment: sf;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 16px 14px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.legal-doc .send-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--violet);
  border-right: 2px solid var(--violet);
  transform: translateY(-50%) rotate(45deg);
}
.sf-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  margin-bottom: 8px;
}
.sf-ico svg { width: 17px; height: 17px; stroke: var(--violet); }
.send-flow strong { font-size: 13.5px; line-height: 1.4; color: var(--white); }
.send-flow strong::before { content: counter(sf) ". "; color: var(--violet); }
.send-flow li > span:last-child { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

@media (max-width: 1080px) {
  .legal-doc ul.ban-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .send-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-doc ol.send-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-doc .send-flow li:not(:last-child)::after { display: none; }
}
@media (max-width: 720px) {
  .legal-doc ul.ban-grid { padding-left: 0; }
  .legal-doc ol.send-flow { margin-left: 0; }
}

/* ---------- საინფორმაციო ბარათი (რეკვიზიტები, კონტაქტი) ---------- */
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 28px 0;
}
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.info-rows { display: grid; gap: 11px; margin: 0; }
.info-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  font-size: 14.5px;
  align-items: baseline;
}
.info-row dt { color: var(--muted-2); }
.info-row dd { color: var(--white); font-weight: 600; margin: 0; }
.info-row dd a { transition: color .2s; }
.info-row dd a:hover { color: var(--violet); }

/* ---------- „შევსებას საჭიროებს" მარკერი ---------- */
.fillme {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 6px;
  background: rgba(245, 158, 11, .16);
  border: 1px dashed #f59e0b;
  color: #d97706;
  font-weight: 700;
  font-size: .92em;
}
:root:not([data-theme="light"]) .fillme { color: #fbbf24; }

/* ---------- ტარიფების ცხრილი ---------- */
.tariff-table-wrap { overflow-x: auto; margin-top: 44px; }
.tariff-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tariff-table th,
.tariff-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.tariff-table thead th {
  background: var(--card-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--muted-2);
  font-weight: 700;
}
.tariff-table tbody th { color: var(--muted); font-weight: 500; }
.tariff-table td {
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tariff-table tr:last-child th,
.tariff-table tr:last-child td { border-bottom: none; }
.tariff-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted-2);
  max-width: 780px;
  line-height: 1.75;
}
.tariff-note + .tariff-note { margin-top: 8px; }
.tariff-note a { color: var(--violet); }

/* ---------- გადახდის მეთოდები ---------- */
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.pay-chip svg { width: 17px; height: 17px; fill: var(--violet); flex-shrink: 0; }
.pay-secure {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  color: var(--muted-2);
  max-width: 760px;
  line-height: 1.75;
}
.pay-secure svg { width: 18px; height: 18px; fill: var(--violet); flex-shrink: 0; margin-top: 3px; }

/* ---------- ჩვენ შესახებ ---------- */
.about-lede { font-size: 17.5px; line-height: 1.75; color: var(--white); margin-bottom: 22px; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.about-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.about-item .ai-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--violet-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.about-item .ai-icon svg { width: 20px; height: 20px; stroke: var(--violet); fill: none; stroke-width: 1.8; }
.about-item h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.about-item p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ---------- დაკავშირებული დოკუმენტები ---------- */
.doc-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.doc-link {
  display: block;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s, transform .2s;
}
.doc-link:hover { border-color: var(--violet); transform: translateY(-2px); }
.doc-link small {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.doc-link span { font-size: 14.5px; font-weight: 700; color: var(--white); }

/* ---------- რესპონსივი ---------- */
@media (max-width: 720px) {
  .doc-hero { padding: 118px 0 34px; }
  .doc-main { padding: 34px 0 70px; }
  .doc-wrap { grid-template-columns: 1fr; gap: 26px; }
  .doc-toc {
    position: static;
    border-left: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background: var(--card);
    max-height: 220px;
    overflow-y: auto;
  }
  .legal-doc h2 { margin-top: 40px; font-size: 18px; padding: 14px 16px; }
  .legal-doc p.clause,
  .legal-doc p.sub,
  .legal-doc ul { padding-left: 0; }
  .legal-doc p.clause .cl-no { position: static; display: block; width: auto; margin-bottom: 2px; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
  .about-grid { grid-template-columns: 1fr; }

  /* ქვეგვერდების მობილური მენიუ (ლენდინგის .mmenu აქ არ ირთვება) */
  .page-doc .site-header { position: fixed; }
  .page-doc .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
  }
  .page-doc .main-nav.open { display: flex; }
  .page-doc .main-nav a { padding: 12px 0; font-size: 15px; }
  .page-doc .main-nav a::after { display: none; }
}

/* ---------- ჰედერის ნავიგაცია ქვეგვერდებზე (5 პუნქტი) ---------- */
@media (max-width: 1080px) {
  .page-doc .main-nav { gap: 20px; }
  .page-doc .main-nav a { font-size: 13px; }
}

/* ---------- ფუტერის ქვედა ზოლი: რეკვიზიტების ხაზი ---------- */
.footer-bottom { flex-wrap: wrap; gap: 8px 24px; }
.footer-legal { color: var(--muted-2); }
.footer-legal strong { color: var(--muted); font-weight: 600; }

/* ---------- გრძელი სარჩევი (წესები: 4 ნაწილი + 27 მუხლი) ---------- */
@media (min-width: 721px) {
  .doc-toc {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
.doc-toc a.toc-part {
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  margin-top: 14px;
  padding-bottom: 4px;
}
.doc-toc a.toc-part:first-of-type { margin-top: 0; }

/* ---------- „გადახდის მეთოდები" ქვესათაური მთავარ გვერდზე ---------- */
.pay-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin-top: 56px;
}

/* ---------- ძალიან ვიწრო ეკრანი: ჰედერი არ უნდა გადმოვარდეს ---------- */
@media (max-width: 430px) {
  /* ლენდინგზე CTA-ს მობილური მენიუ ატარებს, ქვეგვერდებზე — არა,
     ამიტომ ვიწროზე ჰედერიდან ვხსნით, რომ ლოგო + მენიუ დარჩეს მთელი */
  .page-doc .header-actions .btn { display: none; }
  .page-doc .brand-img { height: 38px; }
}
