/* ==========================================
   Legal Pages Stylesheet
   Using Cafe Passport Design System
   ========================================== */

/* ==========================================
   Legal Header Section
   ========================================== */

.legal-header {
  background-color: var(--color-base);
  padding: 24px 0 32px;
}

@media (min-width: 999px) {
  .legal-header {
    padding: 40px 0 48px;
  }
}

.legal-header__container {
  max-width: var(--max-width-pc);
  margin: 0 auto;
  padding: 0 var(--spacing-sp-side);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 999px) {
  .legal-header__container {
    padding: 0 20px;
    gap: 16px;
  }
}

/* Logo Link */
.legal-header__logo-link {
  display: block;
  width: 180px;
  height: 64px;
}

@media (min-width: 999px) {
  .legal-header__logo-link {
    width: 250px;
    height: 88px;
  }
}

.legal-header__logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Catchcopy */
.legal-header__catchcopy {
  font-size: var(--font-size-text-s);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  text-align: center;
  margin: 0;
}

@media (min-width: 999px) {
  .legal-header__catchcopy {
    font-size: var(--font-size-text);
  }
}

/* Page Title */
.legal-header__title {
  font-size: var(--font-size-title-24);
  font-weight: var(--font-weight-bold);
  color: var(--color-title);
  text-align: center;
  margin: 8px 0 0;
  line-height: var(--line-height);
}

@media (min-width: 999px) {
  .legal-header__title {
    font-size: 40px;
    margin: 12px 0 0;
  }
}

/* ==========================================
   Legal Content Section
   ========================================== */

.legal-content {
  background-color: #e0d5cb;
  padding: 60px 0;
}

@media (min-width: 999px) {
  .legal-content {
    padding: 80px 0;
  }
}

.legal-content__container {
  max-width: var(--max-width-pc);
  margin: 0 auto;
  padding: 0 var(--spacing-sp-side);
}

@media (min-width: 999px) {
  .legal-content__container {
    padding: 0 20px;
  }
}

.legal-content__body {
  background-color: var(--color-base-alt);
  border-radius: 16px;
  padding: 32px 20px;
}

@media (min-width: 999px) {
  .legal-content__body {
    padding: 60px 80px;
  }
}

/* Intro Text */
.legal-content__intro {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  line-height: var(--line-height);
  margin: 0 0 40px;
}

@media (max-width: 999px) {
  .legal-content__intro {
    font-size: var(--font-size-text-s);
    margin: 0 0 32px;
  }
}

/* ==========================================
   Legal Section
   ========================================== */

.legal-section {
  margin-bottom: 40px;
}

@media (min-width: 999px) {
  .legal-section {
    margin-bottom: 48px;
  }
}

.legal-section:last-child {
  margin-bottom: 0;
}

/* Section Title */
.legal-section__title {
  font-size: var(--font-size-title-20);
  font-weight: var(--font-weight-bold);
  color: var(--color-title);
  line-height: var(--line-height);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-point-sub);
}

@media (min-width: 999px) {
  .legal-section__title {
    font-size: 28px;
    margin: 0 0 24px;
    padding-bottom: 12px;
  }
}

/* ==========================================
   Legal Article
   ========================================== */

.legal-article {
  margin-bottom: 32px;
}

.legal-article:last-child {
  margin-bottom: 0;
}

.legal-article__title {
  font-size: var(--font-size-text-lb);
  font-weight: var(--font-weight-bold);
  color: var(--color-main);
  line-height: var(--line-height);
  margin: 0 0 12px;
}

@media (min-width: 999px) {
  .legal-article__title {
    font-size: var(--font-size-title-20);
    margin: 0 0 16px;
  }
}

.legal-article__text {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  line-height: var(--line-height);
  margin: 0 0 16px;
}

@media (max-width: 999px) {
  .legal-article__text {
    font-size: var(--font-size-text-s);
  }
}

.legal-article__text:last-child {
  margin-bottom: 0;
}

/* Article List */
.legal-article__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-article__list-item {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  line-height: var(--line-height);
  margin: 0 0 12px;
}

@media (max-width: 999px) {
  .legal-article__list-item {
    font-size: var(--font-size-text-s);
  }
}

.legal-article__list-item:last-child {
  margin-bottom: 0;
}

/* Article Sublist */
.legal-article__sublist {
  list-style: none;
  padding-left: 20px;
  margin: 8px 0 0;
}

.legal-article__sublist-item {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  line-height: var(--line-height);
  margin: 0 0 8px;
}

@media (max-width: 999px) {
  .legal-article__sublist-item {
    font-size: var(--font-size-text-s);
  }
}

.legal-article__sublist-item:last-child {
  margin-bottom: 0;
}

/* ==========================================
   Legal Text
   ========================================== */

.legal-text {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  line-height: var(--line-height);
  margin: 0 0 16px;
}

@media (max-width: 999px) {
  .legal-text {
    font-size: var(--font-size-text-s);
  }
}

.legal-text:last-child {
  margin-bottom: 0;
}

/* ==========================================
   Legal List
   ========================================== */

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.legal-list__item {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  line-height: var(--line-height);
  margin: 0 0 12px;
  padding-left: 20px;
  position: relative;
}

@media (max-width: 999px) {
  .legal-list__item {
    font-size: var(--font-size-text-s);
  }
}

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

.legal-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-point-sub);
}

/* ==========================================
   Legal Link
   ========================================== */

.legal-link {
  color: var(--color-point);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.legal-link:hover {
  opacity: 0.7;
}

/* ==========================================
   Legal Table
   ========================================== */

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.legal-table__row {
  border-bottom: 1px solid #dfc9c5;
}

.legal-table__row:last-child {
  border-bottom: none;
}

.legal-table__header {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-bold);
  color: var(--color-title);
  line-height: var(--line-height);
  text-align: left;
  vertical-align: top;
  padding: 20px 16px 20px 0;
  width: 35%;
}

@media (max-width: 999px) {
  .legal-table__header {
    font-size: var(--font-size-text-s);
    padding: 16px 8px 16px 0;
    width: 40%;
  }
}

.legal-table__data {
  font-size: var(--font-size-text);
  font-weight: var(--font-weight-medium);
  color: var(--color-main);
  line-height: var(--line-height);
  text-align: left;
  vertical-align: top;
  padding: 20px 0;
}

@media (max-width: 999px) {
  .legal-table__data {
    font-size: var(--font-size-text-s);
    padding: 16px 0;
  }
}

/* ==========================================
   Footer Info Section
   ========================================== */

.footer-info {
  background-color: #e0d5cb;
  padding: 64px 0 80px;
}

@media (max-width: 999px) {
  .footer-info {
    padding: 32px 0 40px;
  }
}

.footer-info__container {
  max-width: var(--max-width-pc);
  margin: 0 auto;
  padding: 0 var(--spacing-sp-side);
}

@media (min-width: 999px) {
  .footer-info__container {
    padding: 0 20px;
  }
}

.footer-info__footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (max-width: 999px) {
  .footer-info__footer {
    gap: 32px;
  }
}

/* Company Info */
.footer-info__company {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 160px;
}

.footer-info__company-label {
  font-size: var(--font-size-text-s);
  font-weight: 500;
  color: var(--color-main);
  line-height: var(--line-height);
  text-align: center;
  margin: 0;
}

.footer-info__company-logo {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer Links */
.footer-info__links {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--max-width-pc);
}

@media (max-width: 999px) {
  .footer-info__links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
  }
}

.footer-info__link {
  font-size: var(--font-size-text-s);
  font-weight: 500;
  color: var(--color-main);
  line-height: var(--line-height);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  transition: opacity 0.3s ease;
}

.footer-info__link:hover {
  opacity: 0.7;
}
