/* Yasal sayfalar (KVKK, Gizlilik, Cerez, Yasal Uyari) ortak stili.
   Aile hero'sunun sade/kompakt varyanti: gorselsiz lacivert kabuk, izgara
   dokusu + mavi isima; icerik tek beyaz kabukta yapiskan "Bu Sayfada"
   navigasyonu ve numarali belge bloklari. 4 sayfa da bu dosyayi paylasir
   (functions.php stem: yasal). Sinif cakismasina karsi tum sayfaya ozgu
   kurallar rg-yasal- onekiyle; hero kopyasi rg-yasal-hero kapsaminda.
   Desen ozeti: notlar/05-tasarim-dili.md */

    /* ── Bölüm ritmi (aile standardı: 10px bant araları) ── */
    .rg-yasal-govde {
      padding-top: var(--page-gutter);
      padding-bottom: var(--page-gutter);
    }

    /* ── KOMPAKT HERO (aile hero'sunun görselsiz, kısa varyantı) ── */
    .rg-yasal-hero-section {
      height: auto;
      min-height: clamp(430px, 58svh, 620px);
      padding: 10px;
    }

    .rg-yasal-hero {
      position: relative;
      display: flex;
      height: 100%;
      min-height: inherit;
      overflow: hidden;
      isolation: isolate;
      border-radius: 24px;
      background: #00091f;
      color: #fff;
    }

    /* Görsel yok; sağ üstten süzülen mavi ışıma + sol maskeli ızgara dokusu */
    .rg-yasal-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        radial-gradient(ellipse 62% 88% at 82% 8%, rgba(1, 137, 212, 0.26), transparent 60%),
        radial-gradient(ellipse 40% 60% at 8% 100%, rgba(0, 20, 66, 0.85), transparent 70%);
      pointer-events: none;
    }

    .rg-yasal-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
      background-size: 92px 92px;
      opacity: 0.18;
      -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
      mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
      pointer-events: none;
    }

    /* min-height: 0 sart: site.css ana sayfa hero'su .hero-content'e mobilde
       100svh min-height dayatir; kompakt yasal hero bunu ezmezse tum ekrana
       uzar (sinif cakismasi sizintisi). */
    .rg-yasal-hero .hero-split-layout {
      position: relative;
      z-index: 3;
      display: flex;
      width: 100%;
      min-height: 0;
      flex-flow: row wrap;
      align-items: stretch;
      justify-content: space-between;
      gap: 40px;
      padding: 60px 60px 44px;
    }

    .rg-yasal-hero .hero-split-left {
      display: flex;
      min-width: 320px;
      flex: 1 1 50%;
      flex-direction: column;
      align-self: stretch;
      justify-content: space-between;
      gap: 40px;
    }

    .rg-yasal-hero .hero-split-left__top {
      padding-top: 110px;
    }

    .rg-yasal-hero .hero-title {
      max-width: 720px;
      margin: 0;
      color: #fff;
      font-size: clamp(38px, 4.8vw, 62px);
      font-weight: 600;
      line-height: 1.1;
      letter-spacing: -2px;
      text-shadow: none;
    }

    .rg-yasal-hero .hero-title__line--muted {
      color: rgba(255, 255, 255, 0.72);
      font-weight: 400;
    }

    .rg-yasal-hero .hero-split-right {
      display: flex;
      min-width: 320px;
      flex: 1 1 36%;
      flex-direction: column;
      align-self: flex-end;
      align-items: flex-end;
      justify-content: flex-end;
    }

    .rg-yasal-hero .hero-split-right__inner {
      width: 100%;
      max-width: 440px;
    }

    .rg-yasal-hero .rg-yasal-tarih {
      display: block;
      margin-bottom: 14px;
      color: rgba(255, 255, 255, 0.45);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .rg-yasal-hero .hero-split-right .hero-subline {
      max-width: 440px;
      margin: 0;
      color: rgba(255, 255, 255, 0.72);
      font-size: clamp(16px, 1.2vw, 18px);
      font-weight: 300;
      line-height: 1.6;
    }

    .rg-yasal-hero .rg-about-breadcrumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin: 0;
      padding: 0;
      color: rgba(255, 255, 255, 0.56);
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.02em;
      list-style: none;
    }

    .rg-yasal-hero .rg-about-breadcrumb__item a {
      color: rgba(255, 255, 255, 0.56);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .rg-yasal-hero .rg-about-breadcrumb__item a:hover {
      color: #fff;
    }

    .rg-yasal-hero .rg-about-breadcrumb__item[aria-current="page"] {
      color: rgba(255, 255, 255, 0.92);
    }

    .rg-yasal-hero .rg-about-breadcrumb__sep {
      color: rgba(255, 255, 255, 0.32);
    }

    /* ── BELGE KABUĞU ── */
    .rg-yasal-govde .second-section__shell {
      position: relative;
      padding: clamp(62px, 5.5vw, 92px) var(--hero-content-x);
      overflow: visible; /* yapışkan nav için kırpma yok */
      background: #fff;
      color: var(--brand-navy);
    }

    .rg-yasal-grid {
      display: grid;
      grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1.5fr);
      gap: clamp(48px, 6vw, 110px);
      align-items: start;
    }

    /* min-width: 0 sart: cerez tablosunun min-width'i grid kolonunun
       min-content olcusunu buyutup sayfayi yatay tasirir; sifirlaninca
       tablo kendi kaydirma kabinda kalir. */
    .rg-yasal-grid > * {
      min-width: 0;
    }

    /* ── BU SAYFADA (yapışkan içindekiler) ── */
    .rg-yasal-nav {
      position: sticky;
      top: 120px;
    }

    .rg-yasal-nav__label {
      display: block;
      margin-bottom: 18px;
      color: var(--brand-blue);
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .rg-yasal-nav__list {
      margin: 0;
      padding: 0;
      list-style: none;
      counter-reset: yasalnav;
    }

    .rg-yasal-nav__list li {
      counter-increment: yasalnav;
      border-bottom: 1px solid var(--surface-line);
    }

    .rg-yasal-nav__list li a {
      display: flex;
      align-items: baseline;
      gap: 12px;
      padding: 12px 0;
      color: rgba(0, 20, 66, 0.62);
      font-size: 14.5px;
      font-weight: 400;
      line-height: 1.4;
      letter-spacing: -0.1px;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .rg-yasal-nav__list li a::before {
      content: counter(yasalnav, decimal-leading-zero);
      flex-shrink: 0;
      color: var(--brand-blue);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.06em;
    }

    .rg-yasal-nav__list li a:hover {
      color: var(--brand-navy);
    }

    /* ── BELGE METNİ ── */
    .rg-yasal-blok {
      margin-bottom: clamp(44px, 5vw, 64px);
      scroll-margin-top: 130px; /* sabit header altına çapa payı */
    }

    .rg-yasal-blok:last-child {
      margin-bottom: 0;
    }

    .rg-yasal-blok__title {
      max-width: 720px;
      margin: 0 0 18px;
      color: var(--brand-navy);
      font-size: clamp(22px, 2.2vw, 28px);
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    .rg-yasal-blok__no {
      display: block;
      margin-bottom: 10px;
      color: var(--brand-blue);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.12em;
    }

    .rg-yasal-blok__body p {
      max-width: 68ch;
      margin: 0 0 16px;
      color: rgba(0, 20, 66, 0.72);
      font-size: 16.5px;
      font-weight: 300;
      line-height: 1.75;
      letter-spacing: -0.1px;
    }

    .rg-yasal-blok__body > :last-child {
      margin-bottom: 0;
    }

    .rg-yasal-blok__body strong {
      color: var(--brand-navy);
      font-weight: 500;
    }

    .rg-yasal-blok__body a {
      color: var(--brand-blue);
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color 0.2s ease;
    }

    .rg-yasal-blok__body a:hover {
      color: var(--brand-navy);
    }

    .rg-yasal-blok__body ul {
      max-width: 68ch;
      margin: 0 0 16px;
      padding: 0;
      list-style: none;
    }

    .rg-yasal-blok__body ul li {
      position: relative;
      margin-bottom: 10px;
      padding-left: 22px;
      color: rgba(0, 20, 66, 0.72);
      font-size: 16.5px;
      font-weight: 300;
      line-height: 1.65;
      letter-spacing: -0.1px;
    }

    .rg-yasal-blok__body ul li::before {
      content: "";
      position: absolute;
      top: 0.62em;
      left: 4px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--brand-blue);
    }

    /* ── ÇEREZ TABLOSU ── */
    .rg-yasal-tablo {
      max-width: 100%;
      margin: 8px 0 20px;
      overflow-x: auto;
      border: 1px solid var(--surface-line);
      border-radius: 16px;
    }

    .rg-yasal-tablo table {
      width: 100%;
      min-width: 640px;
      border-collapse: collapse;
      font-size: 14.5px;
    }

    .rg-yasal-tablo th {
      padding: 14px 18px;
      border-bottom: 1px solid var(--surface-line);
      background: var(--surface-paper);
      color: var(--brand-navy);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-align: left;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .rg-yasal-tablo td {
      padding: 14px 18px;
      border-bottom: 1px solid var(--surface-line);
      color: rgba(0, 20, 66, 0.72);
      font-weight: 300;
      line-height: 1.55;
      vertical-align: top;
    }

    .rg-yasal-tablo tr:last-child td {
      border-bottom: 0;
    }

    .rg-yasal-tablo td:first-child {
      color: var(--brand-navy);
      font-weight: 500;
      white-space: nowrap;
    }

    /* ── DİĞER YASAL METİNLER ── */
    .rg-yasal-related {
      margin-top: clamp(48px, 6vw, 72px);
      padding-top: 32px;
      border-top: 1px solid var(--surface-line);
    }

    .rg-yasal-related__label {
      display: block;
      margin-bottom: 16px;
      color: rgba(0, 20, 66, 0.45);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .rg-yasal-related__links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 32px;
    }

    .rg-yasal-related__links .brxe-text-link {
      color: var(--brand-navy);
      font-size: 15px;
      font-weight: 500;
      letter-spacing: -0.1px;
      text-decoration: underline;
      text-underline-offset: 4px;
      text-decoration-color: var(--surface-line);
      transition: color 0.2s ease, text-decoration-color 0.2s ease;
    }

    .rg-yasal-related__links .brxe-text-link:hover {
      color: var(--brand-blue);
      text-decoration-color: var(--brand-blue);
    }

    /* ── 1024: hero tek kolon ── */
    @media (max-width: 1024px) {
      .rg-yasal-hero .hero-split-layout {
        flex-direction: column;
        justify-content: flex-end;
        gap: 44px;
        padding: 128px 40px 44px;
      }

      .rg-yasal-hero .hero-split-left,
      .rg-yasal-hero .hero-split-right {
        min-width: 0;
        flex: none;
        align-self: flex-start;
        align-items: flex-start;
      }

      .rg-yasal-hero .hero-split-left {
        gap: 40px;
      }

      .rg-yasal-hero .hero-split-left__top {
        padding-top: 0;
      }
    }

    /* ── 1024: belge tek kolon, nav yatay çipler ── */
    @media (max-width: 1024px) {
      .rg-yasal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .rg-yasal-nav {
        position: static;
      }

      .rg-yasal-nav__list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .rg-yasal-nav__list li {
        border-bottom: 0;
      }

      .rg-yasal-nav__list li a {
        gap: 8px;
        padding: 8px 14px;
        border: 1px solid var(--surface-line);
        border-radius: 999px;
        font-size: 13px;
        transition: border-color 0.2s ease, color 0.2s ease;
      }

      .rg-yasal-nav__list li a:hover {
        border-color: var(--brand-blue);
        color: var(--brand-blue);
      }
    }

    @media (max-width: 860px) {
      .rg-yasal-govde .second-section__shell {
        padding: 64px var(--hero-content-x);
      }
    }

    /* ── 560: mobil standartlar (battaniye p 16px dahil) ── */
    @media (max-width: 560px) {
      .rg-yasal-hero .hero-split-layout {
        gap: 36px;
        padding: 112px 24px 32px;
      }

      .rg-yasal-hero .hero-title {
        font-size: clamp(38px, 12vw, 54px);
        letter-spacing: -1.5px;
      }

      .rg-yasal-hero .rg-about-breadcrumb {
        display: none;
      }

      .rg-yasal-govde .second-section__shell {
        padding: 54px 30px;
      }

      .rg-yasal-govde p,
      .rg-yasal-blok__body p,
      .rg-yasal-blok__body ul li {
        font-size: 16px;
        font-weight: 300;
        letter-spacing: -0.02em;
        line-height: 1.6;
      }

      .rg-yasal-blok__title {
        font-size: 22px;
      }

      .rg-yasal-blok {
        scroll-margin-top: 110px;
      }

      .rg-yasal-tablo table {
        font-size: 13.5px;
      }

      .rg-yasal-tablo th,
      .rg-yasal-tablo td {
        padding: 12px 14px;
      }

      /* "Bu Sayfada" gezinme linkleri mobil 16px standardina dahil
         (14.5px masaustu degeri kucuk ekranda okunakliligi dusuruyordu). */
      .rg-yasal-nav__list li a {
        font-size: 16px;
      }
    }
