/* privacy-policy.css : Confermax Privacy Policy Styles. Shared rules live in assets/site.css. */
:root {
  --white: #ffffff;
  --black: #000000;
  --dark-forest: #031815;
  --dark-forest-card: #052822;
  --dark-forest-deep: #02120f;
  --dark-footer: #0e3335;
  --dark-footer-deep: #071f21;
  --color-green: #10b981;
  --color-green-dark: #059669;
  --color-green-mint: #34d399;
  --color-green-light: #6ee7b7;
  --color-primary: #ff8a43;
  --color-heading: #0f172a;
  --color-paragraph: #475569;
  --color-muted: #64748b;
  --border-subtle: #e2e8f0;
  --bg-sage: #f8fafc;
  --bg-card: #ffffff;
  --bg-gradient-green: linear-gradient(90deg, #059669 0%, #10b981 100%);
  --font-default: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--dark-forest);
  scroll-behavior: smooth;
}

body {
  background: #f8fafc;
  color: var(--color-paragraph);
  font-family: var(--font-default);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.page-hero-privacy {
  position: relative;
  background: var(--dark-forest);
  padding: 150px 0 70px;
  overflow: hidden;
}

.page-hero-privacy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 75% 25%, rgba(16, 185, 129, 0.16) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(5, 150, 105, 0.22) 0%, transparent 55%),
              linear-gradient(180deg, rgba(3, 24, 21, 0.94) 0%, rgba(2, 18, 15, 0.98) 100%);
  z-index: 1;
}

.page-hero-privacy .container {
  position: relative;
  z-index: 2;
}

.hero-privacy-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-green-light);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(110, 231, 183, 0.35);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-privacy-content h1 {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 18px;
}

.hero-privacy-content h1 span {
  background: linear-gradient(90deg, #6ee7b7 0%, #34d399 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-privacy-content p.lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0;
}

/* Main Layout Grid */
.privacy-main-section {
  padding: 70px 0 100px;
  background: #f8fafc;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar Sticky TOC */
.privacy-sidebar {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.privacy-sidebar h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-heading);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-nav a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.toc-nav a:hover,
.toc-nav a.active {
  color: var(--color-green-dark);
  background: #f0fdf4;
  font-weight: 600;
}

/* Policy Content Blocks */
.privacy-content-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 48px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.04);
}

.policy-block {
  margin-bottom: 36px;
}

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

.policy-block h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 14px;
  line-height: 1.35;
}

.policy-block h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading);
  margin: 22px 0 10px;
  line-height: 1.4;
}

.policy-block p {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.75;
  margin: 0 0 14px;
}

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

.policy-block a {
  color: var(--color-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-block a:hover {
  color: #047857;
}

/* Standard Legal Document List */
.legal-list {
  list-style: disc;
  padding-left: 24px;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list li {
  font-size: 15.5px;
  color: #334155;
  line-height: 1.7;
}

.legal-list li strong {
  color: var(--color-heading);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
  .page-hero-privacy { padding: 130px 0 50px; }
  .hero-privacy-content h1 { font-size: 34px; }
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-sidebar { display: none; }
  .privacy-content-card { padding: 32px 24px; }
}

@media (max-width: 576px) {
  .hero-privacy-content h1 { font-size: 28px; }
  .privacy-content-card { padding: 24px 16px; }
  .policy-block h2 { font-size: 20px; }
}

/* ========================================================
   TERMS OF USE (BLUE HERO & TAB EXTENSIONS)
   ======================================================== */
.page-hero-terms {
  position: relative;
  background: #041637;
  padding: 155px 0 75px;
  overflow: hidden;
  text-align: center;
}

.page-hero-terms::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 75% 25%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(2, 132, 199, 0.22) 0%, transparent 55%),
              linear-gradient(180deg, rgba(4, 22, 55, 0.96) 0%, rgba(2, 13, 34, 0.98) 100%);
  z-index: 1;
}

.page-hero-terms .container {
  position: relative;
  z-index: 2;
}

.hero-terms-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-terms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-terms-content h1 {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 18px;
  font-family: var(--font-heading);
}

.hero-terms-content h1 span {
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-terms-content p.lead {
  font-size: 17px;
  line-height: 1.7;
  color: #cbd5e1;
  margin: 0 auto;
  max-width: 760px;
}

/* Main Terms Content Layout */
.terms-main-section {
  padding: 60px 0 100px;
  background: #ffffff;
}

.terms-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.terms-lead-block {
  margin-bottom: 36px;
}

.terms-main-title {
  font-size: 36px;
  font-weight: 800;
  color: #20736d;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.terms-intro-p {
  font-size: 16px;
  color: #475569;
  line-height: 1.75;
  margin: 0;
}

/* Collapsible Accordion Box */
.terms-accordion {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03);
}

.terms-accordion-item {
  border-bottom: 1px solid #e2e8f0;
}

.terms-accordion-item:last-child {
  border-bottom: none;
}

.terms-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: #ffffff;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-default);
  transition: background-color 0.2s ease;
}

.terms-accordion-header:hover {
  background-color: #f8fafc;
}

.terms-accordion-title {
  font-size: 17.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.terms-accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.terms-accordion-icon .icon-circle-opened {
  display: none;
  color: #20736d;
}

.terms-accordion-icon .icon-circle-closed {
  display: block;
}

.terms-accordion-item.is-open .terms-accordion-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.terms-accordion-item.is-open .terms-accordion-icon .icon-circle-closed {
  display: none;
}

.terms-accordion-item.is-open .terms-accordion-icon .icon-circle-opened {
  display: block;
}

.terms-accordion-body {
  display: none;
  background: #ffffff;
  padding: 36px 36px 48px;
  animation: termsFadeIn 0.25s ease-out;
}

.terms-accordion-item.is-open .terms-accordion-body {
  display: block;
}

@keyframes termsFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terms-accordion-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 12px;
  line-height: 1.35;
}

.terms-accordion-body h3:first-child {
  margin-top: 0;
}

.terms-accordion-body h4 {
  font-size: 16.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 20px 0 10px;
  line-height: 1.4;
}

.terms-accordion-body p {
  font-size: 15px;
  color: #334155;
  line-height: 1.75;
  margin: 0 0 14px;
}

.terms-accordion-body p:last-child {
  margin-bottom: 0;
}

.terms-accordion-body a {
  color: #059669;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-accordion-body a:hover {
  color: #047857;
}

@media (max-width: 768px) {
  .page-hero-terms { padding: 125px 0 50px; }
  .hero-terms-content h1 { font-size: 32px; }
  .hero-terms-content p.lead { font-size: 15.5px; }
  .terms-main-title { font-size: 28px; }
  .terms-accordion-header { padding: 18px 20px; }
  .terms-accordion-title { font-size: 16px; }
  .terms-accordion-body { padding: 24px 20px 32px; }
  .terms-accordion-body h3 { font-size: 18px; margin: 24px 0 10px; }
}

/* ========================================================
   TERMS OF USE (2-TAB NAVIGATION STYLES)
   ======================================================== */
.terms-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.terms-tab-btn {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-default);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terms-tab-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.terms-tab-btn.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.terms-tab-btn .terms-tab-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.terms-tab-btn.active .terms-tab-title {
  color: #0284c7;
}

.terms-tab-btn .terms-tab-desc {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
}

.terms-tab-btn.active .terms-tab-desc {
  color: #0369a1;
  font-weight: 600;
}

/* Tab Panes */
.terms-tab-pane {
  display: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 48px 52px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.04);
  animation: tabPaneFadeIn 0.25s ease-out;
}

.terms-tab-pane.active {
  display: block;
}

@keyframes tabPaneFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terms-pane-intro {
  margin-bottom: 28px;
}

.terms-pane-intro p {
  font-size: 15.5px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .terms-tabs-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }
  .terms-tab-btn {
    padding: 16px 20px;
  }
  .terms-tab-btn .terms-tab-title {
    font-size: 16.5px;
  }
  .terms-tab-pane {
    padding: 28px 20px 36px;
    border-radius: 14px;
  }
  .terms-pane-header h3 {
    font-size: 20px;
  }
}

/* Korean & Japanese font fallbacks */
html[lang="ko"] body { --font-default: 'Outfit', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --font-heading: 'Outfit', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
html[lang="ja"] body { --font-default: 'Outfit', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'Meiryo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --font-heading: 'Outfit', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif; }
