/* ================================================
   SUFRAH — Standalone Pages
   Privacy, Terms, Contact, About
   ================================================ */

.page-shell {
  --standalone-header-offset: 136px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 22%),
    var(--color-bg-primary);
}

[data-theme="light"] .page-shell {
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 22%),
    var(--color-bg-primary);
}

.page-main {
  padding-top: var(--standalone-header-offset);
  padding-bottom: var(--space-20);
}

.page-hero {
  position: relative;
  margin-bottom: var(--space-12);
}

.page-hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: var(--space-12);
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.16), rgba(255, 255, 255, 0.02)),
    var(--color-bg-card);
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.page-hero__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 48%, transparent 100%);
  pointer-events: none;
}

[data-theme="light"] .page-hero__panel {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.8fr);
  gap: var(--space-8);
  align-items: end;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-brand-100);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-5);
}

[data-theme="light"] .page-hero__eyebrow {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.1);
  color: var(--color-brand-700);
}

.page-hero__title {
  max-width: 12ch;
  margin-bottom: var(--space-5);
}

.page-hero__desc {
  max-width: 54ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--color-text-secondary);
}

.page-hero__meta {
  display: grid;
  gap: 14px;
}

.page-hero--centered .page-hero__panel {
  text-align: center;
}

.page-hero__content--centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.page-hero__content--centered .page-hero__title,
.page-hero__content--centered .page-hero__desc {
  max-width: none;
}

.page-hero__meta-card {
  padding: var(--space-5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.page-hero__meta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 18px 30px rgba(124, 58, 237, 0.14);
}

[data-theme="light"] .page-hero__meta-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(124, 58, 237, 0.08);
}

.page-hero__meta-label {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}

.page-hero__meta-value {
  font-size: 1.05rem;
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
}

.page-hero--blog .page-hero__panel {
  padding: clamp(28px, 4vw, 42px);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.18), rgba(255, 255, 255, 0.03)),
    var(--color-bg-card);
  border-color: rgba(124, 58, 237, 0.22);
}

.page-hero--blog .page-hero__title {
  max-width: 12ch;
  margin-bottom: var(--space-4);
}

.page-hero--blog .page-hero__desc {
  max-width: 58ch;
}

.blog-hero {
  position: relative;
  isolation: isolate;
}

.blog-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.8;
}

.blog-hero__glow--one {
  top: -36px;
  inset-inline-end: 10%;
  width: 220px;
  height: 220px;
  background: rgba(59, 130, 246, 0.18);
}

.blog-hero__glow--two {
  bottom: -70px;
  inset-inline-start: 4%;
  width: 280px;
  height: 280px;
  background: rgba(124, 58, 237, 0.22);
}

.blog-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: var(--space-8);
  align-items: center;
}

.blog-hero__copy,
.blog-hero__visual,
.blog-hero__mini-grid {
  display: grid;
  gap: var(--space-5);
}

.blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.blog-hero__actions .btn {
  min-width: 210px;
}

.blog-hero__highlights,
.blog-hero__pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-hero__highlight,
.blog-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.blog-hero__highlight::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-brand-300), var(--color-info));
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.08);
}

.blog-hero-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-5);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(9, 11, 20, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.24);
  display: grid;
  gap: 10px;
}

.blog-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 46%, transparent 100%);
  pointer-events: none;
}

.blog-hero-card--featured {
  padding: var(--space-6);
}

.blog-hero-card__label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--color-brand-100);
}

.blog-hero-card__value {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.7;
  color: var(--color-text-primary);
}

.blog-hero-card__meta {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.blog-hero__mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

[data-theme="light"] .page-hero--blog .page-hero__panel {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.94)),
    #fff;
}

[data-theme="light"] .blog-hero__highlight,
[data-theme="light"] .blog-hero__pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .blog-hero-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 236, 255, 0.88));
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .blog-hero-card__label {
  color: var(--color-brand-700);
}

[data-theme="light"] .blog-hero-card__meta {
  color: #4b5563;
}

[data-theme="light"] .blog-hero__highlight,
[data-theme="light"] .blog-hero__pill {
  color: var(--color-text-primary);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1fr);
  gap: var(--space-8);
}

.page-grid--single {
  grid-template-columns: 1fr;
}

.page-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: var(--space-8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.page-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 30%);
  pointer-events: none;
}

.page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .page-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 255, 0.92));
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.page-card__title {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-5);
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
}

.page-card__text,
.page-card__list li,
.legal-richtext p,
.legal-richtext li {
  position: relative;
  z-index: 1;
  color: var(--color-text-secondary);
  line-height: 2;
  font-size: 15px;
}

.page-card__list {
  display: grid;
  gap: 12px;
}

.page-card__list li {
  padding-inline-start: 18px;
  position: relative;
}

.page-card__list li::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-brand-300), var(--color-info));
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.08);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: var(--space-8);
}

.legal-sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
}

.legal-nav {
  display: grid;
  gap: 10px;
}

.legal-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.legal-nav a:hover {
  transform: translateX(-4px);
  border-color: rgba(124, 58, 237, 0.16);
  color: var(--color-text-primary);
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .legal-nav a {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(124, 58, 237, 0.08);
}

.legal-richtext {
  display: grid;
  gap: var(--space-6);
}

.legal-section {
  scroll-margin-top: 110px;
}

.legal-section h3 {
  margin-bottom: var(--space-4);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

.legal-note {
  padding: var(--space-5);
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
  color: var(--color-text-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.about-stat {
  display: grid;
  gap: 8px;
}

.about-stat__value {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-brand-300);
}

[data-theme="light"] .about-stat__value {
  color: var(--color-brand-600);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-8);
}

.contact-stack {
  display: grid;
  gap: var(--space-5);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.blog-compose {
  display: contents;
}

.blog-compose__toggle {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  width: 68px;
  height: 68px;
  min-width: 0;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 50px rgba(124, 58, 237, 0.34);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.blog-compose__toggle:hover,
.blog-compose__toggle:focus-visible {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 30px 60px rgba(124, 58, 237, 0.42);
  filter: saturate(1.08);
}

.blog-compose__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  line-height: 1;
}

.blog-compose__toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-compose__tooltip {
  position: absolute;
  left: 88px;
  bottom: 50%;
  transform: translateY(50%) translateX(-10px) scale(0.96);
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.34);
}

.blog-compose__tooltip-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.16);
  color: #ddd6fe;
}

.blog-compose__tooltip-icon svg {
  width: 16px;
  height: 16px;
}

.blog-compose__tooltip-copy {
  display: grid;
  gap: 2px;
}

.blog-compose__tooltip strong {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: #fff;
}

.blog-compose__tooltip small {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.86);
}

.blog-compose__tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  background: rgba(30, 41, 59, 0.96);
  transform: translateY(-50%) rotate(45deg);
}

.blog-compose__toggle:hover .blog-compose__tooltip,
.blog-compose__toggle:focus-visible .blog-compose__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(50%) translateX(0) scale(1);
}

.blog-compose-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.blog-compose-modal[hidden] {
  display: none;
}

.blog-compose-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(8px);
}

.blog-compose__card {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: var(--space-6);
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.34);
}

.blog-compose__header {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blog-compose__header .page-card__title {
  margin: 0;
}

.blog-compose__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.blog-compose__close:hover {
  background: rgba(124, 58, 237, 0.16);
}

[data-theme="light"] .blog-compose__close {
  background: rgba(124, 58, 237, 0.08);
}

.blog-form,
.blog-feed,
.blog-posts,
.blog-comments,
.blog-comments__list {
  display: grid;
  gap: var(--space-5);
}

.blog-form__grid,
.blog-toolbar,
.blog-toolbar__filters {
  display: grid;
  gap: var(--space-4);
}

.blog-form__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-feed {
  width: 100%;
}

.blog-feed__head {
  padding: 18px 22px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(255, 255, 255, 0.02)),
    var(--color-bg-card);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .blog-feed__head {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.06), rgba(255, 255, 255, 0.94)),
    #fff;
  border-color: rgba(124, 58, 237, 0.1);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.blog-toolbar {
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .blog-toolbar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(124, 58, 237, 0.08);
}

.blog-toolbar__filters {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  align-items: end;
}

.blog-toolbar__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.blog-toolbar__search input,
.blog-toolbar__sort select,
.blog-form__field select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  padding: 14px 16px;
  font: inherit;
}

.blog-toolbar__search input:focus,
.blog-toolbar__sort select:focus,
.blog-form__field select:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.44);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  padding: 12px 16px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.blog-tab:hover,
.blog-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-text-primary);
}

.blog-form__field {
  display: grid;
  gap: 10px;
}

.blog-form__field label,
.blog-form__identity legend {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.blog-form__field input,
.blog-form__field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  padding: 14px 16px;
  font: inherit;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.blog-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.blog-form__field input:focus,
.blog-form__field textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.44);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

[data-theme="light"] .blog-form__field input,
[data-theme="light"] .blog-form__field textarea {
  background: rgba(255, 255, 255, 0.9);
}

.blog-form__identity {
  display: grid;
  gap: 14px;
  padding: var(--space-5);
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 22px;
  background: rgba(124, 58, 237, 0.06);
}

.blog-form__identity-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.blog-choice input {
  accent-color: var(--color-brand-400);
}

.blog-form__actions,
.blog-comment-form__actions,
.blog-feed__head,
.blog-post__head,
.blog-post__meta,
.blog-comment__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-form__status {
  min-height: 24px;
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.blog-form__status[data-state="success"] {
  color: #22c55e;
}

.blog-form__status[data-state="error"] {
  color: #ef4444;
}

.blog-feed__count,
.blog-post__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-brand-200);
  font-size: 13px;
  font-weight: var(--fw-semibold);
}

.blog-post__kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
}

.blog-post__kind.is-article {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.blog-post__kind.is-question {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

[data-theme="light"] .blog-post__kind.is-article {
  color: #047857;
}

[data-theme="light"] .blog-post__kind.is-question {
  color: #b45309;
}

.blog-post {
  position: relative;
  overflow: hidden;
  gap: var(--space-6);
  padding: var(--space-7);
  border-radius: 28px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.02)),
    var(--color-bg-card);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.18);
}

.blog-post::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.16), transparent 28%),
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 45%, transparent 100%);
  pointer-events: none;
}

[data-theme="light"] .blog-post {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 255, 0.92));
  border-color: rgba(124, 58, 237, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.blog-post__shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
}

.blog-post__head {
  display: grid;
  gap: 18px;
}

.blog-post__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-post__date {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.blog-post__title-block {
  display: grid;
  gap: 8px;
}

.blog-post__title {
  margin: 0;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.5;
}

.blog-post__eyebrow {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.blog-post__author-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .blog-post__author-row {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 255, 0.88));
  border-color: rgba(124, 58, 237, 0.08);
}

.blog-post__avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.24);
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.14);
}

.blog-post__author-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.blog-post__author-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.14);
  font-size: 11px;
  line-height: 1;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.blog-post__content-wrap {
  display: grid;
  gap: 12px;
}

.blog-post__author {
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
  font-size: 0.96rem;
  line-height: 1.45;
}

.blog-comment__meta {
  color: var(--color-text-tertiary);
  font-size: 13px;
}

.blog-post__content {
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .blog-post__content {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 255, 0.88));
  border-color: rgba(124, 58, 237, 0.08);
}

.blog-post__content,
.blog-comment p,
.blog-comments__empty {
  color: var(--color-text-secondary);
  line-height: 1.9;
}

.blog-post__expand {
  width: fit-content;
  border: 0;
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-brand-200);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.blog-post__expand:hover {
  transform: translateY(-1px);
  background: rgba(124, 58, 237, 0.16);
  color: var(--color-text-primary);
}

.blog-post__stat-pill {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.14);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.blog-post__stat-pill strong {
  font-size: 0.98rem;
  color: var(--color-text-primary);
  line-height: 1;
}

.blog-post__stat-pill span,
.blog-post__summary-label {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.blog-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-post__footer-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-post__footer-note {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  font-size: 12px;
}

.blog-comments {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-comments__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

[data-theme="light"] .blog-comments {
  border-top-color: rgba(124, 58, 237, 0.1);
}

.blog-comment {
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.blog-comment--admin {
  background:
    linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(15, 23, 42, 0.16);
  border-color: rgba(52, 211, 153, 0.16);
}

[data-theme="light"] .blog-comment {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.08);
  box-shadow: none;
}

[data-theme="light"] .blog-comment--admin {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.94));
  border-color: rgba(16, 185, 129, 0.16);
}

.blog-comments__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.blog-comments__title::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-brand-300), var(--color-info));
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.08);
}

.blog-comments__count {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-brand-200);
  font-size: 13px;
  font-weight: var(--fw-semibold);
}

.blog-comments__toggle {
  width: fit-content;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-text-primary);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 999px;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-comments__toggle:hover,
.blog-comments__toggle[aria-expanded="true"] {
  transform: translateY(-1px);
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.12);
}

.blog-comment-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.34s ease, opacity 0.26s ease, visibility 0.26s ease;
}

.blog-comment-panel.is-open {
  max-height: 720px;
  opacity: 1;
  visibility: visible;
}

.blog-comment-panel__inner {
  padding-top: 8px;
}


.blog-form__identity--compact {
  padding: 16px;
  border-radius: 18px;
}

.blog-comment-form {
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .blog-comment-form {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(124, 58, 237, 0.08);
}

.blog-empty {
  text-align: center;
}

.blog-empty__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto var(--space-4);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-brand-200);
  font-size: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.contact-method:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 20px 34px rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .contact-method {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(124, 58, 237, 0.08);
}

.contact-method__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.14);
  color: var(--color-brand-200);
  flex-shrink: 0;
}

[data-theme="light"] .contact-method__icon {
  color: var(--color-brand-700);
  background: rgba(124, 58, 237, 0.08);
}

.contact-method__icon svg {
  width: 20px;
  height: 20px;
}

.contact-method__value {
  display: inline-block;
  margin-top: 6px;
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
}

.contact-form {
  display: grid;
  gap: var(--space-5);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 10px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, transform 0.24s ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-tertiary);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.24);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  background: rgba(124, 58, 237, 0.04);
  transform: translateY(-1px);
}

[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(124, 58, 237, 0.08);
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.contact-form__hint {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.contact-form__success {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #86efac;
  font-size: 14px;
  font-weight: var(--fw-medium);
}

.contact-form__success.is-visible {
  display: block;
}

[data-theme="light"] .contact-form__success {
  color: #047857;
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.12);
}

@media (max-width: 1024px) {
  .page-hero__content,
  .legal-layout,
  .contact-layout,
  .page-grid {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-shell {
    --standalone-header-offset: 118px;
  }

  .page-main {
    padding-top: var(--standalone-header-offset);
  }

  .page-hero__panel,
  .page-card {
    padding: var(--space-6);
    border-radius: 24px;
  }

  .page-hero__title {
    max-width: 100%;
  }

  .blog-form__actions,
  .blog-comment-form__actions,
  .blog-feed__head,
  .blog-post__topline,
  .blog-post__footer,
  .blog-comment__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-form__grid,
  .blog-toolbar__filters {
    grid-template-columns: 1fr;
  }

  .blog-post {
    padding: var(--space-6);
    border-radius: 24px;
  }

  .blog-post__author-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .blog-post__stat-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .blog-compose__toggle {
    left: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
  }

  .blog-compose__tooltip {
    display: none;
  }

  .blog-compose-modal {
    padding: 16px;
  }

  .blog-post__content,
  .blog-comment-form {
    padding: 16px;
    border-radius: 18px;
  }

  .contact-form__grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}
