/*
 * Policy Pages Styles
 * くるま買取ケイヴィレッジ
 * プライバシーポリシー・特定商取引法・サイトマップ共通スタイル
 */

/* ========================================
   Page Hero Section
   ======================================== */

.privacy-hero.page-hero,
.tokushoho-hero.page-hero,
.sitemap-hero.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  overflow: hidden;
}

.privacy-hero.page-hero::before,
.tokushoho-hero.page-hero::before,
.sitemap-hero.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  opacity: 0.6;
}

.privacy-hero .page-hero__content,
.tokushoho-hero .page-hero__content,
.sitemap-hero .page-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) var(--l-padding-side);
}

.privacy-hero .page-hero__content h1,
.tokushoho-hero .page-hero__content h1,
.sitemap-hero .page-hero__content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.privacy-hero .page-hero__content p,
.tokushoho-hero .page-hero__content p,
.sitemap-hero .page-hero__content p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .privacy-hero.page-hero,
  .tokushoho-hero.page-hero,
  .sitemap-hero.page-hero {
    min-height: 70vh;
  }
}

/* ========================================
   Section Content Base
   ======================================== */

.section-content {
  padding: var(--l-section-margin-vertical) 0;
  position: relative;
}

.section-content.bg-white {
  background-color: var(--color-bg-white);
  color: var(--color-text-primary);
}

.section-content__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 6%;
}

@media (min-width: 768px) {
  .section-content__inner {
    flex-direction: row;
    gap: clamp(3rem, 8vw, 7.375rem);
  }
}

.section-label {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-label {
    width: clamp(200px, 25%, 330px);
  }
}

.l-content-full {
  width: 100%;
}

/* ========================================
   Policy Content
   ======================================== */

.policy-content {
  max-width: 900px;
}

.policy-intro {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.policy-intro p {
  line-height: 1.8;
  color: var(--color-text-primary);  
}

.policy-section-item {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: none;  
  transition: var(--transition-smooth);  
}

.policy-section-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.policy-section-item__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  color: var(--color-primary);
  line-height: 1.4;
}

.policy-section-item__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.policy-section-item__content {
  color: var(--color-text-primary);  
  line-height: 1.8;
}

.policy-section-item__content p {
  margin-bottom: 1rem;
}

.policy-section-item__content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.policy-section-item__content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.policy-section-item__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.policy-contact {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.policy-contact__item {
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);  
  line-height: 1.6;
}

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

.policy-contact__item a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.policy-contact__item a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.policy-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.policy-footer p {
  margin-bottom: 0.5rem;
}

/* ========================================
   Tokushoho Table
   ======================================== */

.tokushoho-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.tokushoho-table th,
.tokushoho-table td {
  padding: 1.5rem;
  border: none;  
  text-align: left;
  vertical-align: top;
}

.tokushoho-table th {
  background: #f5f5f5;
  font-weight: 700;
  color: var(--color-primary);
  width: 180px;
}

.tokushoho-table td {
  color: var(--color-text-primary);  
  line-height: 1.8;
}

.tokushoho-table ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tokushoho-table li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.tokushoho-table li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

@media (max-width: 767px) {
  .tokushoho-table,
  .tokushoho-table tbody,
  .tokushoho-table tr,
  .tokushoho-table th,
  .tokushoho-table td {
    display: block;
    width: 100%;
  }

  .tokushoho-table th {
    background: transparent;
    padding-bottom: 0.5rem;
    border-bottom: none;
  }

  .tokushoho-table td {
    padding-top: 0;
    border-top: none;
  }

  .tokushoho-table tr {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* ========================================
   Sitemap Content
   ======================================== */

.sitemap-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 767px) {
  .sitemap-content {
    grid-template-columns: 1fr;
  }
}

.sitemap-group {
  background: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: none;  
  transition: var(--transition-smooth);  
}

.sitemap-group:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.sitemap-group__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  line-height: 1.3;
}

.sitemap-group__title i {
  font-size: 1.25rem;
}

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

.sitemap-list__item {
  margin-bottom: 0.75rem;
}

.sitemap-list__item:last-child {
  margin-bottom: 0;
}

.sitemap-list__item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--color-text-primary);  
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition-smooth);  
}

.sitemap-list__item a:hover {
  background: #f5f5f5;
  color: var(--color-text-primary);
  padding-left: 1rem;
}

.sitemap-list__item a i {
  color: var(--color-text-light);
  font-size: 0.75rem;
  transition: color 0.3s ease;
}

.sitemap-list__item a:hover i {
  color: var(--color-text-primary);
}

/* ========================================
   Typography Overrides
   ======================================== */

.privacy-hero .t-headline-l-en,
.tokushoho-hero .t-headline-l-en,
.sitemap-hero .t-headline-l-en,
.privacy-hero .t-combined-400_500-12-14,
.tokushoho-hero .t-combined-400_500-12-14,
.sitemap-hero .t-combined-400_500-12-14 {
  color: #ffffff;
}

.section-content h2,
.section-content h3,
.section-content h4 {
  color: var(--color-primary);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 767px) {
  .section-content {
    padding: clamp(3rem, 8vw, 4rem) 0;
  }

  .policy-section-item {
    padding: 1.5rem;
  }

  .policy-section-item__number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .sitemap-group {
    padding: 1.5rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .privacy-hero.page-hero,
  .tokushoho-hero.page-hero,
  .sitemap-hero.page-hero {
    min-height: auto;
    background: var(--color-bg-white);
    color: var(--color-text-primary);
  }

  .privacy-hero.page-hero::before,
  .tokushoho-hero.page-hero::before,
  .sitemap-hero.page-hero::before {
    display: none;
  }

  .section-content {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  .policy-section-item,
  .sitemap-group {
    box-shadow: none;
    border: 1px solid #cccccc;
    page-break-inside: avoid;
  }
}
