:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --ink: #171816;
  --muted: #656860;
  --line: rgba(23, 24, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 312px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100dvh;
}

.checkout-frame {
  width: 100vw;
  min-width: 312px;
  min-height: 100dvh;
  background: var(--bg);
}

.checkout-frame iframe {
  display: block;
  width: 100% !important;
  min-width: 312px !important;
  min-height: 100dvh !important;
  border: 0 !important;
  background: transparent !important;
}

#checkout-status {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 245, 239, 0.92);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

#checkout-status[data-visible="true"] {
  opacity: 1;
}

.checkout-legal {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 245, 239, 0.88);
  backdrop-filter: blur(16px);
}

.checkout-legal a,
.policy-nav a,
.policy-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.checkout-legal a:hover,
.policy-nav a:hover,
.policy-footer a:hover {
  color: var(--ink);
}

noscript {
  position: fixed;
  inset: auto 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.policy-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(159, 243, 207, 0.18), transparent 25%),
    linear-gradient(180deg, #f7f6f1, #efede5);
}

.policy-header,
.policy-main,
.policy-footer {
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
}

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.policy-brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.policy-main {
  display: grid;
  gap: 14px;
  padding: 32px 0 56px;
}

.policy-hero,
.policy-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(23, 24, 22, 0.07);
}

.policy-hero {
  padding: clamp(28px, 5vw, 54px);
}

.policy-section {
  padding: clamp(22px, 3vw, 34px);
}

.policy-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-hero h1,
.policy-section h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.policy-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
}

.policy-section h2 {
  font-size: clamp(24px, 4vw, 38px);
}

.policy-hero p,
.policy-section p,
.policy-section li,
.policy-footer {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.policy-hero p {
  max-width: 720px;
  margin: 18px 0 0;
}

.policy-section p {
  margin: 12px 0 0;
}

.policy-section ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.policy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 28px;
}

.policy-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .checkout-legal {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
    border-radius: 14px;
  }

  .policy-header,
  .policy-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-nav {
    justify-content: flex-start;
  }
}
