
:root {
  --bg: #f7f3e9;
  --bg2: #f2ead9;
  --text: #1f1f1d;
  --muted: rgba(31, 31, 29, 0.62);
  --paper: #fffef8;
  --accent: #fb923c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 5vw, 36px);
}

.top-layout {
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - clamp(64px, 12vw, 128px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.brand-mark {
  font-size: clamp(48px, 6vw, 64px);
  line-height: 1;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.brand-rule {
  width: 64px;
  height: 6px;
  border-radius: 6px;
  background: var(--accent);
}

.top-copy {
  margin-top: clamp(28px, 5vw, 48px);
}

.top-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.2;
}

.top-copy p {
  margin: 0;
  color: #374151;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.feature-list {
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #374151;
  font-weight: 500;
  line-height: 1.6;
}

.feature-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.cta-card {
  background: #ffffff;
  border: 1px solid #ece7db;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 28px 56px -26px rgba(31, 31, 29, 0.32);
}

.cta-card h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.2;
}

.cta-card p {
  margin: 0 0 24px;
  color: #4b5563;
  line-height: 1.7;
}

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

.legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ded8cb;
  border-radius: 12px;
  padding: 13px 14px;
  color: #4b5563;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.legal-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.legal-layout {
  min-height: 100vh;
  padding: clamp(72px, 12vw, 120px) clamp(16px, 5vw, 32px) clamp(96px, 14vw, 140px);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
}

.legal-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "updated updated"
    "back language";
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 24px;
  width: 100%;
  padding-bottom: 16px;
  position: relative;
}

.legal-meta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(31,31,29,0.1) 0%, rgba(31,31,29,0.4) 50%, rgba(31,31,29,0.1) 100%);
}

.meta-updated {
  grid-area: updated;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-back {
  grid-area: back;
}

.meta-lang {
  grid-area: language;
  justify-self: end;
  color: var(--muted);
  font-size: 0.85rem;
}

.inline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid #d8d0bf;
  border-radius: 999px;
  padding: 8px 14px;
  color: #6b7280;
  background: #fffdf8;
}

.inline-nav a.current {
  border-color: #b88a5b;
  color: #5e4229;
  background: #fef5e8;
  font-weight: 700;
}

.paper {
  background: var(--paper);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 6vw, 64px);
  box-shadow: 0 24px 80px rgba(31,31,29,0.12), 0 12px 32px rgba(31,31,29,0.08);
  border: 1px solid rgba(86,76,53,0.08);
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 5vw, 40px);
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  width: clamp(90px, 18vw, 140px);
  height: 28px;
  background: rgba(252, 233, 200, 0.92);
  top: clamp(14px, 2vw, 24px);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(31, 31, 29, 0.18);
  pointer-events: none;
  z-index: 0;
}

.paper::before {
  left: clamp(20px, 6vw, 72px);
  transform: rotate(-3deg);
}

.paper::after {
  right: clamp(20px, 6vw, 72px);
  transform: rotate(2deg);
}

.paper-content {
  position: relative;
  z-index: 1;
  color: rgba(31,31,29,0.88);
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.paper-content h1,
.paper-content h2,
.paper-content h3,
.paper-content h4,
.paper-content h5,
.paper-content h6 {
  color: #1f1f1d;
  line-height: 1.4;
  margin: clamp(32px, 5vw, 48px) 0 16px;
}

.paper-content h1:first-of-type {
  margin-top: 12px;
  margin-bottom: clamp(32px, 6vw, 48px);
  text-align: center;
  font-size: clamp(2.1rem, 4.5vw, 2.8rem);
  font-weight: 700;
}

.paper-content h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.paper-content h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.paper-content h4 { font-size: 1.08rem; }
.paper-content p { margin: 0 0 18px; }
.paper-content ul,
.paper-content ol { margin: 12px 0 24px; padding-left: 1.4em; }
.paper-content li { margin-bottom: 10px; }
.paper-content strong { font-weight: 600; }
.paper-content blockquote {
  border-left: 4px solid rgba(31,31,29,0.12);
  margin: 24px 0;
  padding: 12px 24px;
  background: rgba(31,31,29,0.04);
}
.paper-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  box-shadow: 0 0 0 1px rgba(31,31,29,0.12);
}
.paper-content th,
.paper-content td {
  border: 1px solid rgba(31,31,29,0.12);
  padding: 12px 14px;
  text-align: left;
}
.paper-content hr {
  border: none;
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(90deg, rgba(31,31,29,0.06) 0%, rgba(31,31,29,0.3) 50%, rgba(31,31,29,0.06) 100%);
}
.paper-content a {
  color: #ef7d27;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .top-layout {
    grid-template-columns: 1fr;
    align-content: center;
  }
}

@media (max-width: 768px) {
  .legal-layout {
    padding: 72px 16px 96px;
  }
  .legal-meta {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "updated"
      "language"
      "back";
    gap: 20px 16px;
  }
  .meta-lang {
    justify-self: start;
  }
  .paper {
    padding: 40px 24px;
  }
  .paper::before,
  .paper::after {
    height: 22px;
  }
}
