/* Shared styling for the two plain reading pages, /cookies/ and /privacy/.
   Narrow measure, generous leading, and a two column list for the storage
   inventory that stacks on small screens. The .ck-* prefix is historical: it
   started life on the cookies page and now carries both. */

/* hero: the same navy wash the Istanbul hero uses, so the white heading stays
   readable no matter what the photograph underneath is doing */
.section-hero.ck-hero {
  position: relative;
}

.section-hero.ck-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(2, 24, 64, 0.6) 0%,
    rgba(9, 51, 130, 0.5) 55%,
    rgba(1, 15, 40, 0.76) 100%
  );
  pointer-events: none;
}

.section-hero.ck-hero .grid-halves-section {
  position: relative;
  z-index: 2;
}

.ck-page {
  max-width: 46rem;
  margin: 0 auto;
}

.ck-page h2 {
  margin: 0 0 0.9rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--ink, #1d1d1f);
}

.ck-page p {
  margin: 0 0 1.05rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2, #6e6e73);
}

.ck-page p:last-child {
  margin-bottom: 0;
}

.ck-page a {
  color: var(--accent, #0356f0);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ck-block {
  margin-bottom: 3.25rem;
}

.ck-block:last-child {
  margin-bottom: 0;
}

/* the lead paragraph carries the whole answer, so it gets a little more air */
.ck-lead {
  font-size: 1.1875rem !important;
  line-height: 1.6 !important;
  color: var(--ink, #1d1d1f) !important;
}

/* ---------- storage inventory ---------- */

.ck-store {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline, rgba(0, 0, 0, 0.08));
}

.ck-store-row {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline, rgba(0, 0, 0, 0.08));
}

.ck-store-name {
  min-width: 0;
}

.ck-store-name code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  /* long keys must wrap rather than push the column open */
  overflow-wrap: anywhere;
  color: var(--ink, #1d1d1f);
}

.ck-store-kind {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  background: var(--hairline-soft, rgba(0, 0, 0, 0.05));
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2, #6e6e73);
}

.ck-store-what p {
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.6;
}

.ck-store-life {
  margin-top: 0.5rem !important;
  font-size: 0.875rem !important;
  color: var(--ink, #1d1d1f) !important;
  font-weight: 500;
}

/* ---------- plain "we don't" list ---------- */

.ck-nots {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ck-nots li {
  position: relative;
  padding: 0 0 0 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2, #6e6e73);
}

.ck-nots li:last-child {
  margin-bottom: 0;
}

.ck-nots li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.55rem;
  height: 1px;
  background: var(--ink-2, #6e6e73);
  opacity: 0.55;
}

/* ---------- clear drafts control ---------- */

/* the button does nothing without JS, so it stays out of the way until the
   script has looked at what is actually stored */
.ck-clear {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.15rem;
  margin-top: 1.4rem;
}

.ck-clear.is-ready {
  display: flex;
}

.ck-clear-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--ink, #1d1d1f);
  border-radius: 10px;
  padding: 0.62rem 1.25rem;
  background: transparent;
  color: var(--ink, #1d1d1f);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ck-clear-btn:hover {
  background: var(--ink, #1d1d1f);
  color: #fff;
}

.ck-clear-btn:active {
  transform: scale(0.98);
}

.ck-clear-btn[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
  background: transparent;
  color: var(--ink, #1d1d1f);
}

.ck-clear-status {
  margin: 0 !important;
  font-size: 0.9rem !important;
  color: var(--ink-2, #6e6e73) !important;
}

.ck-updated {
  margin-top: 3.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline, rgba(0, 0, 0, 0.08));
  font-size: 0.875rem !important;
  color: var(--ink-2, #6e6e73) !important;
}

@media (max-width: 47rem) {
  .ck-store-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .ck-page h2 {
    font-size: 1.4rem;
  }

  .ck-page p,
  .ck-nots li {
    font-size: 1rem;
  }

  .ck-lead {
    font-size: 1.09rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-clear-btn {
    transition: none;
  }

  .ck-clear-btn:active {
    transform: none;
  }
}

/* ---------- sub-headings, used by the longer privacy notice ---------- */

.ck-page h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink, #1d1d1f);
}

.ck-page h3:first-child {
  margin-top: 0;
}

/* a definition-ish run of "we ask for this, on this basis" lines */
.ck-basis {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline, rgba(0, 0, 0, 0.08));
}

.ck-basis li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline, rgba(0, 0, 0, 0.08));
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2, #6e6e73);
}

.ck-basis b {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--ink, #1d1d1f);
}

/* ---------- language panes ----------
   No JS means both languages render one after the other, which for a legal
   notice is better than hiding one of them behind a button that does nothing. */
.lg-pane-off {
  display: none;
}

.lg-pane + .lg-pane {
  margin-top: 3.25rem;
}

.lg-pane-off + .lg-pane,
.lg-pane + .lg-pane-off {
  margin-top: 0;
}

/* the EN/TR switch, same component the OIF committee page uses */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #ececf0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.section-hero .lang-toggle {
  align-self: flex-start;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.section-hero .lang-option {
  color: rgba(255, 255, 255, 0.75);
}

.section-hero .lang-option.is-active {
  color: #1d1d1f;
}

.lang-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lang-toggle[data-active="tr"] .lang-thumb {
  transform: translateX(100%);
}

.lang-option {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  min-height: 32px;
  padding: 0.4rem 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  color: #6e6e73;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.lang-option.is-active {
  color: #1d1d1f;
}

@media (prefers-reduced-motion: reduce) {
  .lang-thumb {
    transition: none;
  }
}
