/* =========================================================
   NexRelia — Shared Stylesheet (legal & account pages)
   index.html uses its own inline styles — not loaded here
   ========================================================= */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
    --burgundy:   #1A0612;
    --mauve:      #D4A0C8;
    --mauve-light:#E8C8E0;
    --cream:      #FFF8F5;
    --text:       #2D1B28;
    --text-light: #6B5566;
    --white:      #FFFFFF;
    --red:        #DC2626;
    --red-light:  #FEE2E2;
    --mauve-link: #8B3A7A;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 80px; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

/* === Nav (tüm sayfalarda) === */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #1A0612;
  color: #FFF8F5;
  box-shadow: 0 2px 16px rgba(26, 6, 18, 0.35);
}
.main-nav .brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #D4A0C8;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFF8F5;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #FFF8F5;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #D4A0C8; }

/* Dropdown — desktop */
.has-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.dropdown-caret { font-size: 0.7rem; transition: transform 0.2s; display: inline-block; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 0.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(26, 6, 18, 0.15);
  list-style: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
@media (min-width: 769px) {
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
  .has-dropdown:hover .dropdown-caret,
  .has-dropdown:focus-within .dropdown-caret { transform: rotate(180deg); }
}
.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: #2D1B28 !important;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-menu li a:hover { background: rgba(212, 160, 200, 0.15); color: #1A0612 !important; }

/* Mobil nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: #1A0612;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { border-bottom: 1px solid rgba(212, 160, 200, 0.1); }
  .nav-links > li > a,
  .nav-links > li > .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0.5rem;
    font-size: 1.05rem;
    width: 100%;
  }
  /* Mobil dropdown — varsayılan KAPALI */
  .has-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none;
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, background 0.3s ease;
  }
  .has-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 0.4rem 0.5rem;
    margin: 0 0 0.5rem;
    background: rgba(212, 160, 200, 0.06);
  }
  .has-dropdown .dropdown-menu li a { color: #FFF8F5 !important; font-size: 0.95rem; padding: 0.7rem 1rem; }
  .has-dropdown .dropdown-menu li a:hover { background: rgba(212, 160, 200, 0.15); color: #D4A0C8 !important; }
  .has-dropdown .dropdown-caret { transform: none; transition: transform 0.25s; }
  .has-dropdown.open .dropdown-caret { transform: rotate(180deg); }
  body.menu-open { overflow: hidden; position: fixed; width: 100%; }
}

/* ── PAGE HEADER (delete-account) ───────────────────────── */
.page-header {
    background: var(--burgundy);
    padding: 48px 24px 64px;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--cream);
    border-radius: 50% 50% 0 0;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.page-header p {
    color: var(--mauve-light);
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
}

/* ── CONTENT ─────────────────────────────────────────────── */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.content h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--burgundy);
    margin-bottom: 8px;
}

.update-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--burgundy);
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--mauve-light);
}

.content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 8px;
}

.content p {
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text);
}

.content ul,
.content ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.content li {
    margin-bottom: 6px;
    font-size: 15px;
}

.content strong {
    font-weight: 700;
    color: var(--burgundy);
}

.content a {
    color: var(--mauve-link);
    text-decoration: underline;
}

.content a:hover { color: var(--mauve); }

.content hr {
    border: none;
    border-top: 1px solid var(--mauve-light);
    margin: 32px 0;
}

.content blockquote {
    border-left: 3px solid var(--mauve);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-light);
    font-style: italic;
}

/* ── CONTENT TABLE ───────────────────────────────────────── */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}

.content thead {
    background: var(--burgundy);
    color: var(--mauve-light);
}

.content th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.content td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--mauve-light);
    vertical-align: top;
}

.content tr:nth-child(even) { background: #FFF0EC; }

/* ── CHECKBOX (consent page) ─────────────────────────────── */
.content p:has(input[type="checkbox"]) {
    background: #F5E6F0;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--mauve);
    margin: 20px 0;
}

/* ── DELETE-ACCOUNT: warning box ─────────────────────────── */
.warning-box {
    background: var(--red-light);
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.warning-box h3 {
    color: var(--red);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.warning-box p {
    color: #991B1B;
    font-size: 14px;
    margin-bottom: 0;
}

/* ── DELETE-ACCOUNT: step list ───────────────────────────── */
.steps { margin: 24px 0; }

.step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    color: var(--mauve);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 0;
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ── DELETE-ACCOUNT: data table ──────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.data-table th {
    background: var(--burgundy);
    color: var(--mauve-light);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(26, 6, 18, 0.08);
    color: var(--text-light);
}

.data-table tr:nth-child(even) td {
    background: rgba(26, 6, 18, 0.02);
}

/* ── DELETE-ACCOUNT: email box ───────────────────────────── */
.email-box {
    background: var(--white);
    border: 1px solid rgba(26, 6, 18, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.email-box p {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.email-box a {
    display: inline-block;
    background: var(--burgundy);
    color: var(--mauve);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.email-box a:hover { background: #2A1022; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
    background: var(--burgundy);
    padding: 32px 24px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--mauve-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
    color: var(--text-light);
    font-size: 12px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
    nav { padding: 14px 16px; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 12px; }

    .content { padding: 32px 16px 48px; }
    .content h1 { font-size: 22px; }
    .content h2 { font-size: 17px; }

    .content table { font-size: 12px; }
    .content th,
    .content td { padding: 8px 6px; }

    .data-table th,
    .data-table td { padding: 8px 10px; font-size: 13px; }

    .footer-links { gap: 12px; }
}

/* ── COOKIE CONSENT BANNER ───────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: -220px;
    left: 0;
    right: 0;
    background: #1A0612;
    border-radius: 20px 20px 0 0;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -6px 40px rgba(26, 6, 18, 0.45);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.cookie-banner--visible { bottom: 0; }
.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.65;
    color: #E8C8E0;
    min-width: 220px;
}
.cookie-text a {
    color: #D4A0C8;
    text-decoration: underline;
    font-weight: 600;
}
.cookie-text a:hover { opacity: 0.8; }
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.cookie-btn-accept {
    background: #D4A0C8;
    color: #1A0612;
    border: 2px solid #D4A0C8;
}
.cookie-btn-accept:hover { opacity: 0.85; }
.cookie-btn-reject {
    background: transparent;
    color: #E8C8E0;
    border: 2px solid rgba(232, 200, 224, 0.35);
}
.cookie-btn-reject:hover { border-color: #E8C8E0; }

@media (max-width: 600px) {
    .cookie-banner {
        padding: 18px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        border-radius: 16px 16px 0 0;
    }
    .cookie-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; text-align: center; padding: 12px 16px; }
}


/* === Yasal Sayfalar Sidebar === */
body.legal-page,
body.legal-hub {
  background: #FFF8F5;
  color: #2D1B28;
  overflow-y: auto;
  min-height: 100vh;
}

.legal-layout {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.legal-layout .content { max-width: none; margin: 0; padding: 0; }

.legal-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: 0 2px 12px rgba(26, 6, 18, 0.06);
  color: #2D1B28;
}

/* Toggle button — mobile only */
.sidebar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: #1A0612;
  border-radius: 12px;
  transition: background 0.15s;
  text-align: left;
}
.sidebar-toggle:hover { background: rgba(212, 160, 200, 0.1); }
.sidebar-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.sidebar-toggle-icon { font-size: 1.3rem; flex-shrink: 0; }
.sidebar-toggle-text { display: flex; flex-direction: column; min-width: 0; }
.sidebar-toggle-text strong { font-size: 0.95rem; line-height: 1.2; color: #1A0612; }
.sidebar-current {
  display: block;
  font-size: 0.78rem;
  color: #6B5566;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-toggle-caret {
  font-size: 0.85rem;
  transition: transform 0.25s;
  color: #6B5566;
  flex-shrink: 0;
}
.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-caret { transform: rotate(180deg); }

.sidebar-body { padding: 0.65rem; }

.sidebar-search { position: relative; margin-bottom: 1rem; }
.sidebar-search input {
  width: 100%;
  padding: 0.6rem 0.8rem 0.6rem 2.2rem;
  border: 1px solid rgba(26, 6, 18, 0.12);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #FFF8F5;
  color: #2D1B28;
  transition: all 0.2s;
}
.sidebar-search input:focus {
  outline: none;
  border-color: #D4A0C8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 160, 200, 0.2);
}
.sidebar-search .search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.5;
}

.legal-sidebar .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  padding: 0;
  margin: 0;
  list-style: none;
}
.legal-sidebar .sidebar-link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: #2D1B28;
  background: transparent;
  transition: background 0.15s;
}
.legal-sidebar .sidebar-link:hover { background: rgba(212, 160, 200, 0.12); }
.legal-sidebar .sidebar-link.active {
  background: linear-gradient(135deg, rgba(212, 160, 200, 0.25), rgba(212, 160, 200, 0.1));
  border-left: 3px solid #1A0612;
  padding-left: calc(0.75rem - 3px);
}
.legal-sidebar .sidebar-icon { font-size: 1.2rem; flex-shrink: 0; }
.legal-sidebar .sidebar-link strong { display: block; font-size: 0.92rem; line-height: 1.3; color: #1A0612; }
.legal-sidebar .sidebar-link small { color: #6B5566; font-size: 0.78rem; }
.sidebar-empty { text-align: center; color: #6B5566; font-size: 0.85rem; padding: 1rem; margin: 0; }

.legal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(26, 6, 18, 0.04);
  color: #2D1B28;
  min-width: 0;
}
.legal-content h1 { color: #1A0612; margin-top: 0; }
.legal-content h2, .legal-content h3 { color: #1A0612; }
.legal-content a { color: #8B5A7A; }

/* Desktop: sticky sidebar, body always visible */
@media (min-width: 901px) {
  .legal-sidebar {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
  .sidebar-body { display: block !important; }
}

/* Mobile: toggle visible, body collapsed */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem auto;
  }
  .legal-sidebar { padding: 0.4rem; position: static; max-height: none; }
  .sidebar-toggle { display: flex; }
  .sidebar-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 0.65rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .sidebar-toggle[aria-expanded="true"] + .sidebar-body {
    max-height: 700px;
    padding: 0.65rem;
    border-top: 1px solid rgba(26, 6, 18, 0.08);
    margin-top: 0.4rem;
  }
  .legal-content { padding: 1.4rem; }
}

/* === Hub Sayfası === */
.hub-main {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}
.hub-header { text-align: center; margin-bottom: 2.5rem; }
.hub-header .updates-eyebrow { margin-bottom: 1rem; }
.hub-header h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); color: #1A0612; margin: 0.5rem 0; }
.hub-header p { color: #6B5566; max-width: 580px; margin: 0 auto 1.5rem; padding: 0 0.5rem; }
.hub-search { max-width: 480px; margin: 0 auto; padding: 0 0.5rem; }
.hub-search input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(26, 6, 18, 0.12);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
}
.hub-search input:focus { outline: none; border-color: #D4A0C8; box-shadow: 0 0 0 4px rgba(212, 160, 200, 0.2); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.hub-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  padding-right: 3.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(26, 6, 18, 0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26, 6, 18, 0.12); border-color: rgba(212, 160, 200, 0.4); }
.hub-icon { font-size: 2rem; display: block; margin-bottom: 0.7rem; line-height: 1; }
.hub-card h3 { color: #1A0612; margin: 0 0 0.5rem; font-size: 1.15rem; line-height: 1.3; }
.hub-card p { color: #6B5566; margin: 0; line-height: 1.5; font-size: 0.92rem; }
.hub-arrow { position: absolute; top: 1.75rem; right: 1.5rem; font-size: 1.3rem; color: #D4A0C8; transition: transform 0.2s; }
.hub-card:hover .hub-arrow { transform: translateX(4px); color: #1A0612; }
.hub-empty { grid-column: 1 / -1; text-align: center; color: #6B5566; padding: 2rem; }
.updates-eyebrow { display: inline-block; font-size: 0.75rem; letter-spacing: 0.15em; font-weight: 700; color: #8B5A7A; padding: 0.4rem 0.9rem; background: rgba(212, 160, 200, 0.15); border-radius: 999px; margin-bottom: 1rem; }

@media (max-width: 600px) {
  .hub-main { margin: 1.5rem auto 3rem; }
  .hub-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hub-card { padding: 1.5rem 1.25rem; padding-right: 3rem; }
  .hub-arrow { top: 1.5rem; right: 1.25rem; }
}
