/* ============================================
   SKUTOČNÝ PORTÁL - Inner Pages Styles
   ============================================ */

/* === THANKS PAGE === */
.thanks-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(80px + var(--space-xl)) var(--space-sm) var(--space-2xl);
  text-align: center;
  background: linear-gradient(135deg, var(--c-violet) 0%, var(--c-sky) 50%, var(--c-coral) 100%);
}

.thanks-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, color-mix(in oklch, var(--c-lime), transparent 60%) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, color-mix(in oklch, var(--c-gold), transparent 60%) 0%, transparent 60%);
  pointer-events: none;
}

.thanks-hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.thanks-hero__icon {
  font-size: 4rem;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 16px color-mix(in oklch, var(--c-white), transparent 50%));
}

.thanks-hero__title {
  color: var(--c-white);
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.thanks-hero__subtitle {
  color: color-mix(in oklch, var(--c-white), transparent 15%);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.thanks-hero__share {
  display: flex;
  justify-content: center;
}

.thanks-next {
  background: var(--c-paper);
  padding: var(--space-2xl) var(--space-sm);
  text-align: center;
}

.thanks-next__container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.thanks-next__title {
  color: var(--c-ink);
  margin-bottom: var(--space-xl);
}

.thanks-next__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.thanks-next__step {
  padding: 1.8rem 1.2rem;
  background: var(--c-paper-warm);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.thanks-next__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.thanks-next__step-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-violet-muted);
  color: var(--c-violet);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.thanks-next__step h3 {
  color: var(--c-ink);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.thanks-next__step p {
  font-size: 0.88rem;
  color: var(--c-ink-muted);
}

@media (max-width: 640px) {
  .thanks-next__steps {
    grid-template-columns: 1fr;
  }
}

/* === LEGAL PAGES === */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-page__header {
  padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  background: var(--c-paper-warm);
  border-bottom: 3px solid var(--c-violet-muted);
}

.legal-page__header--coral {
  background: color-mix(in oklch, var(--c-coral), white 85%);
  border-bottom-color: var(--c-coral-muted);
}

.legal-page__header--lime {
  background: color-mix(in oklch, var(--c-lime), white 75%);
  border-bottom-color: var(--c-lime-muted);
}

.legal-page__header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-page__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}

.legal-page__meta {
  font-size: 0.85rem;
  color: var(--c-ink-muted);
  margin-bottom: 1.2rem;
}

.legal-page__share {
  margin-top: 1rem;
}

.legal-page__body {
  flex: 1;
  background: var(--c-paper);
  padding: var(--space-2xl) 0;
}

.legal-page__container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-summary-box {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: var(--c-violet-muted);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--c-violet);
}

.legal-summary-box i {
  color: var(--c-violet);
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-summary-box strong {
  display: block;
  color: var(--c-violet-dark);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.legal-summary-box p {
  font-size: 0.88rem;
  color: var(--c-ink-muted);
}

.legal-section {
  margin-bottom: 2rem;
  border: 1px solid color-mix(in oklch, var(--c-ink), transparent 90%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.legal-section__summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--c-paper-warm);
  cursor: default;
}

.legal-section__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--c-violet);
  color: var(--c-white);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--c-coral);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

.legal-section__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.legal-section__dot--violet { background: var(--c-violet); }
.legal-section__dot--sky { background: var(--c-sky); }
.legal-section__dot--coral { background: var(--c-coral); }
.legal-section__dot--gold { background: var(--c-gold); }

.legal-section__summary strong {
  font-size: 0.92rem;
  color: var(--c-ink);
  line-height: 1.5;
}

.legal-section__detail {
  padding: 1.4rem;
  border-top: 1px solid color-mix(in oklch, var(--c-ink), transparent 90%);
}

.legal-section__detail p {
  font-size: 0.92rem;
  color: var(--c-ink-muted);
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.legal-section__detail p:last-child {
  margin-bottom: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-list li {
  font-size: 0.9rem;
  color: var(--c-ink-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}

.legal-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--c-violet);
  font-weight: 700;
}

.legal-intro-block {
  padding: 1.4rem 1.6rem;
  background: color-mix(in oklch, var(--c-coral), white 88%);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border-left: 4px solid var(--c-coral);
}

.legal-intro-block p {
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

.legal-toc {
  background: var(--c-paper-warm);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
  border: 1px solid color-mix(in oklch, var(--c-ink), transparent 90%);
}

.legal-toc__title {
  font-size: 0.9rem;
  color: var(--c-ink);
  margin-bottom: 0.8rem;
}

.legal-toc__list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-toc__list li {
  font-size: 0.88rem;
}

.legal-toc__list a {
  color: var(--c-coral-dark);
  text-decoration: underline;
  transition: color var(--transition-base);
}

.legal-toc__list a:hover {
  color: var(--c-coral);
}

/* Cookies page specific */
.cookies-intro {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.6rem;
  background: color-mix(in oklch, var(--c-lime), white 78%);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--c-lime-dark);
}

.cookies-intro__icon {
  font-size: 2rem;
  color: var(--c-lime-dark);
  flex-shrink: 0;
}

.cookies-intro__title {
  font-size: 1.1rem;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}

.cookies-intro p {
  font-size: 0.9rem;
  color: var(--c-ink-muted);
  line-height: 1.7;
}

.cookies-table-wrap {
  margin-bottom: 2.5rem;
}

.cookies-table-title {
  font-size: 1rem;
  color: var(--c-ink);
  margin-bottom: 0.8rem;
}

.cookies-table {
  border: 1px solid color-mix(in oklch, var(--c-ink), transparent 88%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cookies-table__row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr 0.8fr;
  gap: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--c-ink), transparent 90%);
}

.cookies-table__row:last-child {
  border-bottom: none;
}

.cookies-table__row--header {
  background: var(--c-ink);
}

.cookies-table__row--header span {
  color: var(--c-white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cookies-table__row span {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--c-ink-muted);
  border-right: 1px solid color-mix(in oklch, var(--c-ink), transparent 90%);
}

.cookies-table__row span:last-child {
  border-right: none;
}

.cookies-table__row:not(.cookies-table__row--header):nth-child(odd) {
  background: var(--c-paper-warm);
}

code {
  background: color-mix(in oklch, var(--c-ink), transparent 90%);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: monospace;
  color: var(--c-violet-dark);
}

@media (max-width: 600px) {
  .cookies-table__row {
    grid-template-columns: 1fr 1fr;
  }

  .cookies-table__row span:nth-child(3),
  .cookies-table__row span:nth-child(4) {
    display: none;
  }

  .cookies-table__row--header span:nth-child(3),
  .cookies-table__row--header span:nth-child(4) {
    display: none;
  }

  .legal-summary-box {
    flex-direction: column;
  }
}