/* ===================================================================
   AzitChat (아지트챗) Editorial Policy & Service Guide Design System
   Modern Korean Consumer Tech Reference (Toss, Karrot, Spoon, Wrtn)
   Lounge Aesthetic: Deep Espresso (#1e1916) + Warm Amber (#f0be64)
   =================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #2b2520;
  background-color: #fbf7f2;
  background-image:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(240, 190, 100, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, #fbf7f2 0%, #f6f0e6 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #b45309;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: #d97706;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f0be64;
  outline-offset: 3px;
}

/* -------------------------------------------------------------------
   1. Sticky Header & Pill Navigation (Lounge Glassmorphism)
   ------------------------------------------------------------------- */
.policy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 25, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(82, 69, 56, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
  padding: 14px 20px;
}

.policy-header > * {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.policy-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #fbf7f2;
  margin-bottom: 12px;
}

.policy-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.policy-brand span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #2b2520;
  border: 1px solid #4d4135;
  color: #f0be64;
  font-size: 12px;
  font-weight: 750;
  border-radius: 9999px;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.policy-brand:hover span {
  background: #382f27;
  border-color: #f0be64;
  color: #ffd687;
  transform: translateY(-1px);
}

.policy-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.policy-nav::-webkit-scrollbar {
  display: none;
}

.policy-nav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d5c8b7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.policy-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.policy-nav a.active {
  background: linear-gradient(135deg, #f0be64 0%, #d8962d 100%);
  color: #1a140b;
  font-weight: 750;
  border-color: #f0be64;
  box-shadow: 0 2px 10px rgba(240, 190, 100, 0.35);
}

/* -------------------------------------------------------------------
   2. Main Shell & Editorial Typography
   ------------------------------------------------------------------- */
.policy-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 46px 22px 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  color: #92400e;
  background: #fdf3e2;
  border: 1px solid #fbd995;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 750;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #1f1915;
  margin: 0 0 14px;
}

.lead {
  color: #635547;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 24px;
}

.version {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  color: #7d6f61;
  background: #f2ebe0;
  border: 1px solid #e5dbcd;
  padding: 7px 16px;
  border-radius: 10px;
  margin-bottom: 28px;
}

.version a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
}

/* -------------------------------------------------------------------
   3. Table of Contents (Pill Jump Chips)
   ------------------------------------------------------------------- */
.policy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 20px 22px;
  background: #f5efe6;
  border: 1px solid #e7ded2;
  border-radius: 16px;
  font-size: 13.5px;
  margin: 24px 0 32px;
}

.policy-toc a {
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #ded5c6;
  border-radius: 9999px;
  color: #4d4135;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(45, 35, 25, 0.04);
  transition: all 0.15s ease;
}

.policy-toc a:hover {
  background: #2b2520;
  color: #f0be64;
  border-color: #2b2520;
  transform: translateY(-1px);
}

section[id] {
  scroll-margin-top: 100px;
}

/* -------------------------------------------------------------------
   4. Content Section Cards
   ------------------------------------------------------------------- */
section {
  margin: 28px 0;
  padding: 34px 32px;
  background: #ffffff;
  border: 1px solid #ede3d5;
  border-radius: 20px;
  box-shadow: 0 4px 20px -3px rgba(45, 35, 25, 0.04), 0 1px 3px rgba(45, 35, 25, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

section:hover {
  border-color: #dfd4c4;
  box-shadow: 0 8px 24px -4px rgba(45, 35, 25, 0.07);
}

h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: #241d17;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #f0be64 0%, #d8962d 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

p {
  margin: 0 0 14px;
  color: #383028;
}

p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------
   5. Callout Notice Box
   ------------------------------------------------------------------- */
.notice {
  padding: 22px 26px;
  background: #fdf8ed;
  border: 1px solid #f6deb2;
  border-left: 5px solid #d97706;
  border-radius: 14px;
  margin: 28px 0;
  font-size: 15px;
  color: #4a3b2c;
  box-shadow: 0 4px 16px -2px rgba(217, 119, 6, 0.08);
}

.notice strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
}

.notice p {
  margin-top: 6px;
  color: #5c4b3a;
  line-height: 1.7;
}

/* -------------------------------------------------------------------
   6. Tables & Structured Data
   ------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid #e7dfd3;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(45, 35, 25, 0.03);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  min-width: 560px;
  background: #ffffff;
}

caption {
  text-align: left;
  font-weight: 750;
  font-size: 15px;
  color: #332b24;
  margin-bottom: 12px;
  padding: 4px 6px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid #efe8df;
  border-right: 1px solid #f3ede4;
  white-space: normal;
  line-height: 1.65;
}

th:last-child, td:last-child {
  border-right: none;
}

tr:last-child td {
  border-bottom: none;
}

th {
  background: #f7f2ea;
  color: #4a3f35;
  font-weight: 750;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}

tr:hover td {
  background: #fcfaf7;
}

/* -------------------------------------------------------------------
   7. Lists & Formulas
   ------------------------------------------------------------------- */
ul, ol {
  padding-left: 24px;
  margin: 14px 0;
}

li {
  margin: 10px 0;
  color: #383028;
  line-height: 1.75;
}

li strong {
  color: #1f1915;
}

.formula {
  background: #f7f2ea;
  border: 1px solid #e8e0d4;
  border-left: 4px solid #f0be64;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 18px 0;
  font-weight: 650;
  color: #2b2520;
  font-size: 15px;
}

/* -------------------------------------------------------------------
   8. Products Page (Modern Pricing Catalog)
   ------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.product {
  position: relative;
  padding: 34px 28px;
  border: 1.5px solid #ebd9c0;
  border-radius: 20px;
  background: #ffffff;
  scroll-margin-top: 24px;
  box-shadow: 0 4px 20px -3px rgba(45, 35, 25, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -4px rgba(45, 35, 25, 0.1);
  border-color: #dfcaa8;
}

.product .eyebrow {
  margin-bottom: 10px;
  align-self: flex-start;
}

.product h2 {
  font-size: 22px;
  font-weight: 850;
  color: #1f1915;
  margin: 4px 0 12px;
}

.product h2::before {
  display: none;
}

.hearts {
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -1px;
  color: #e11d48;
  margin: 8px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hearts span {
  font-size: 18px;
  font-weight: 700;
  color: #e11d48;
}

.price {
  font-size: 26px;
  font-weight: 800;
  color: #1f1915;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e8ded2;
}

.price small {
  display: block;
  font-size: 13px;
  color: #7d6f61;
  font-weight: 500;
  margin-top: 4px;
}

dl {
  font-size: 13.5px;
  margin: 0 0 auto;
}

dt {
  font-weight: 750;
  color: #4a3f35;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

dt::before {
  content: "•";
  color: #d8962d;
  font-weight: 900;
}

dd {
  margin: 4px 0 0 12px;
  color: #695d50;
  line-height: 1.65;
}

.action {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #2b2520 0%, #3d332a 100%);
  border-radius: 12px;
  color: #f0be64;
  text-decoration: none;
  padding: 14px 18px;
  margin-top: 26px;
  font-weight: 750;
  font-size: 15px;
  border: 1px solid #4f4134;
  box-shadow: 0 4px 14px rgba(43, 37, 32, 0.22);
  transition: all 0.2s ease;
}

.action:hover {
  background: #3d342c;
  color: #ffd687;
  border-color: #f0be64;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 37, 32, 0.3);
}

.status {
  text-align: center;
  font-size: 12.5px;
  color: #8c7356;
  background: #fbf5eb;
  border: 1px solid #f1e4d2;
  border-radius: 8px;
  padding: 7px 12px;
  margin-top: 12px;
}

/* Package Ribbons */
#popular {
  border-color: #f0be64;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  box-shadow: 0 8px 30px -4px rgba(240, 190, 100, 0.3);
}

#popular::before {
  content: "🔥 가장 많은 선택";
  position: absolute;
  top: -13px;
  right: 20px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(190, 18, 60, 0.35);
  letter-spacing: -0.2px;
}

#mania {
  border-color: #d8962d;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

#mania::before {
  content: "👑 VIP 인기 추천";
  position: absolute;
  top: -13px;
  right: 20px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  letter-spacing: -0.2px;
}

/* -------------------------------------------------------------------
   9. Verification Preview
   ------------------------------------------------------------------- */
.verification-preview {
  max-width: 500px;
  margin: 28px auto;
  padding: 28px;
  background: #fdfaf5;
  border: 1px solid #e8ded2;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(45, 35, 25, 0.05);
}

.verification-preview button {
  width: 100%;
  padding: 14px;
  border: 1px solid #d5c8b7;
  border-radius: 12px;
  background: #ede3d5;
  color: #6e6153;
  font: inherit;
  font-weight: 750;
  cursor: not-allowed;
}

.verification-preview h3 {
  margin: 4px 0 14px;
  font-size: 18px;
  color: #241d17;
}

/* -------------------------------------------------------------------
   10. Corporate Footer (Unified Lounge Aesthetic)
   ------------------------------------------------------------------- */
.policy-business {
  background: #1c1714;
  color: #a89a8c;
  border-top: 1px solid #332b24;
  padding: 50px 24px 64px;
  font-size: 13px;
  line-height: 1.9;
}

.policy-business > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.policy-business strong {
  color: #fbf7f2;
  font-size: 15.5px;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}

.policy-business p {
  color: #8c7e71;
  margin: 8px 0;
}

.policy-business a {
  color: #cbbba9;
  text-decoration: none;
  transition: color 0.15s ease;
}

.policy-business a:hover {
  color: #f0be64;
  text-decoration: underline;
}

.policy-business .policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2e2620;
}

.policy-business .policy-nav a {
  color: #a89a8c;
  font-size: 12.5px;
  padding: 3px 0;
  background: transparent;
  border: none;
}

.policy-business .policy-nav a:hover {
  color: #f0be64;
  background: transparent;
  transform: none;
}

/* -------------------------------------------------------------------
   11. Responsive Breakpoints
   ------------------------------------------------------------------- */
@media (max-width: 640px) {
  .policy-header {
    padding: 12px 16px;
  }
  .policy-brand img {
    height: 28px;
  }
  .policy-nav {
    gap: 6px;
    padding-bottom: 2px;
  }
  .policy-nav a {
    font-size: 12px;
    padding: 6px 12px;
  }
  .policy-main {
    padding: 28px 16px 50px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  section, .product {
    padding: 24px 18px;
    border-radius: 16px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 19px;
  }
  .policy-business {
    padding: 36px 16px 48px;
  }
}
