/* Yasal sayfalar, fiyatlar, ödeme sayfası ve ortak footer. styles.css'ten sonra yüklenir. */

/* ---------- eksik bilgi işaretçisi ---------- */
.eksik { background: #fde68a; color: #78350f; border-radius: 4px; padding: 0 5px; font-weight: 500; white-space: normal; }

/* ---------- imleç kuralı: turuncu çizgi = "buradasınız / burada bir şey oluyor" ---------- */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .nav-links a::after { transition: none; } }

/* ---------- sayfa başlığı ---------- */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.crumbs { font: 500 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.page-head .lead { margin-top: 14px; max-width: 64ch; color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .page-head { padding: 36px 0 22px; } .page-head .lead { font-size: 16px; } }

/* ---------- uzun metin ---------- */
.legal { padding: 40px 0 88px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.015em; }
.legal-body h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2, var(--ink)); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul, .legal-body ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body ol[type="a"] { list-style: lower-alpha; }
.legal-body a { color: var(--accent); text-underline-offset: 3px; }
.legal-body strong { font-weight: 600; }
.legal-body .note {
  margin: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; background: var(--surface); font-size: 15px;
}
.surum { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--muted); }

/* bilgi tablosu (satıcı kartı) */
.kv { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.kv > div { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.kv a { color: inherit; }
@media (max-width: 560px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } }

/* tablolar */
.table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { border-top: 0; background: var(--bg-alt); font-weight: 600; font-size: 14px; }

/* ---------- iletişim kanalları ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; max-width: 760px; }
.contact-cards a {
  display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; background: var(--surface); transition: border-color .2s;
}
.contact-cards a:hover { border-color: var(--ink); }
.contact-cards i { font-size: 22px; color: var(--accent); }
.contact-cards small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- fiyatlar ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding: 40px 0 24px; }
.plan {
  display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.plan-name { font-size: 20px; }
.plan-sum { margin-top: 8px; color: var(--muted); font-size: 15px; min-height: 3em; }
.plan-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-vat { font-size: 13px; color: var(--muted); }
.plan-list { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; flex: 1; }
.plan-list li { display: flex; gap: 8px; }
.plan-list i { color: var(--accent); margin-top: 4px; flex: none; }
.plan-time { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.plan-cta { margin-top: 18px; width: 100%; }
.plans-notes { padding-bottom: 80px; max-width: 760px; color: var(--muted); font-size: 15px; display: grid; gap: 8px; }

/* ---------- ödeme sayfası ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 36px; padding-bottom: 88px; align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.checkout > * { min-width: 0; }
@media (max-width: 560px) {
  .co-pkg { flex-wrap: wrap; }
  .co-pkg-price { width: 100%; padding-left: 26px; white-space: normal; }
  .co-step { padding: 18px; }
}
.co-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.co-badges span { display: inline-flex; gap: 6px; align-items: center; font: 500 13px/1 var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.co-badges i { color: var(--accent); }
.co-step { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; }
.co-step + .co-step { margin-top: 16px; }
.co-step h2 { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.co-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 13px/1 var(--mono); }
.co-pkgs { display: grid; gap: 10px; margin-top: 16px; }
.co-pkg { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.co-pkg:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.co-pkg input { margin-top: 5px; accent-color: var(--accent); }
.co-pkg-main { flex: 1; }
.co-pkg-main strong { display: block; }
.co-pkg-main small { color: var(--muted); font-size: 14px; }
.co-pkg-price { font-weight: 600; white-space: nowrap; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.co-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .co-grid { grid-template-columns: 1fr; } }
.co-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.co-field input, .co-field textarea, .co-field select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--bg); color: var(--ink); font: 400 16px/1.2 var(--font);
}
.co-field textarea { height: auto; padding: 12px 14px; min-height: 84px; resize: vertical; }
.co-field input:focus, .co-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.co-field .err { color: #c0352b; font-size: 13px; margin-top: 4px; }
.co-field.invalid input, .co-field.invalid textarea { border-color: #c0352b; }
.co-help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.co-checks { display: grid; gap: 12px; margin-top: 16px; }
.co-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.co-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.co-check a { color: var(--accent); }
.co-check.invalid { color: #c0352b; }
.co-error { margin-top: 12px; color: #c0352b; font-size: 14px; }

.co-aside { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 960px) { .co-aside { position: static; } }
.co-summary { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px; }
.co-summary h2 { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.co-lines { margin-top: 14px; display: grid; gap: 8px; font-size: 15px; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; }
.co-lines dt { color: var(--muted); }
.co-lines dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.co-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.co-total strong { font-size: 26px; letter-spacing: -0.02em; }
.co-renew { margin-top: 10px; font-size: 13px; color: var(--muted); }
.co-pay-btn { width: 100%; margin-top: 16px; height: 52px; font-size: 16px; }
.co-trust { margin-top: 14px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.co-trust li { display: flex; gap: 8px; align-items: center; }
.co-trust i { color: var(--accent); }

/* ödeme logoları paneli: belirgin, beyaz zemin */
.pay-panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 20px; }
.pay-panel h2 { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pay-logos {
  margin-top: 14px; background: #ffffff; border: 1px solid #e5e7e3; border-radius: 12px; padding: 16px;
  display: grid; gap: 14px; justify-items: center;
}
.pay-logos .iyz { height: 48px; width: auto; }
.pay-logos .band { height: 30px; width: auto; max-width: 100%; }
.pay-panel p { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pay-panel a { color: var(--accent); }

/* kart formu adımı */
.co-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.co-card-head img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; border: 1px solid #e5e7e3; }
#iyzipay-checkout-form { min-height: 120px; margin-top: 16px; }
.co-pending { margin-top: 16px; padding: 16px; border-radius: 12px; border: 1px dashed var(--line); background: var(--bg); font-size: 15px; }
.co-pending .btn { margin-top: 12px; margin-right: 8px; }

/* ---------- ortak footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; color: var(--muted); background: var(--bg); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.sf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 800px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .sf-grid { grid-template-columns: 1fr; } }
.sf-brand .brand { color: var(--ink); }
.sf-note { margin-top: 14px; max-width: 34ch; }
.sf-contact { margin-top: 14px; display: grid; gap: 4px; }
.sf-more { color: var(--accent) !important; }
.sf-title { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 14px; }
.sf-col ul { display: grid; gap: 8px; }
.sf-pay { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.sf-pay-title { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); }
.sf-band img { height: 32px; width: auto; max-width: 100%; }
.sf-pay-note { max-width: 70ch; font-size: 13px; }
.sf-bottom { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; }
