
:root {
  --legal-bg: #fff7f9;
  --legal-white: #ffffff;
  --legal-pink: #f5476e;
  --legal-pink-dark: #df3159;
  --legal-pink-soft: #fff0f4;
  --legal-pink-soft-2: #ffe5ec;
  --legal-pink-border: #f8d8e1;
  --legal-text: #17171a;
  --legal-text-secondary: #606067;
  --legal-text-muted: #92929a;
  --legal-border: rgba(245, 71, 110, 0.10);
  --legal-shadow: 0 20px 60px rgba(35, 18, 25, 0.06);
  --legal-shadow-hover: 0 24px 70px rgba(245, 71, 110, 0.12);
  --legal-radius: 24px;
  --legal-small-radius: 16px;
  --legal-gradient:
    linear-gradient(
      135deg,
      #ff5f86 0%,
      #f5476e 48%,
      #e93863 100%
    );
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;

  background:
    radial-gradient(
      circle at 8% 5%,
      rgba(255, 143, 163, 0.13),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 12%,
      rgba(245, 71, 110, 0.08),
      transparent 28%
    ),
    var(--legal-bg);

  color: var(--legal-text);

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}


.legal-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.82);

  border-bottom: 1px solid rgba(245, 71, 110, 0.08);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));

  min-height: 76px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--legal-text);

  text-decoration: none;

  font-size: 22px;
  font-weight: 700;

  letter-spacing: -0.7px;
}




.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 9px 17px;

  border: 1px solid var(--legal-pink-border);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.9);

  color: var(--legal-pink-dark);

  text-decoration: none;

  font-size: 13px;
  font-weight: 700;

  box-shadow:
    0 5px 18px rgba(245, 71, 110, 0.06);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.back-link:hover {
  transform: translateY(-2px);

  background: var(--legal-pink);

  color: #ffffff;

  box-shadow:
    0 9px 25px rgba(245, 71, 110, 0.22);
}


.page-wrapper {
  width: min(1080px, calc(100% - 48px));

  margin: 0 auto;

  padding: 64px 0 80px;
}


.legal-card {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99),
      rgba(255, 255, 255, 0.97)
    );

  border: 1px solid rgba(245, 71, 110, 0.09);

  border-radius: var(--legal-radius);

  padding: 58px 64px;

  box-shadow: var(--legal-shadow);
}

.legal-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 4px;

  background: var(--legal-gradient);
}

.legal-card::after {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  top: -180px;
  right: -120px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(245, 71, 110, 0.10),
      transparent 68%
    );

  pointer-events: none;
}

.page-title {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--legal-text);

  font-size: clamp(32px, 4vw, 48px);

  line-height: 1.08;

  font-weight: 850;

  letter-spacing: -1.6px;
}

.page-title::after {
  content: "";

  display: block;

  width: 52px;
  height: 4px;

  margin-top: 18px;

  border-radius: 99px;

  background: var(--legal-gradient);
}

.page-subtitle {
  margin: 17px 0 0;

  max-width: 700px;

  color: var(--legal-text-secondary);

  font-size: 15px;

  line-height: 1.8;
}

.last-updated {
  display: inline-flex;
  align-items: center;

  margin-top: 16px;

  padding: 6px 11px;

  border-radius: 999px;

  background: var(--legal-pink-soft);

  color: var(--legal-pink-dark);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.25px;
}


.intro {
  position: relative;

  margin-top: 34px;

  padding: 23px 25px 23px 27px;

  background:
    linear-gradient(
      135deg,
      #fff5f7,
      #fffafd
    );

  border: 1px solid var(--legal-pink-border);

  border-radius: var(--legal-small-radius);

  color: var(--legal-text-secondary);

  font-size: 14px;

  line-height: 1.85;

  box-shadow:
    0 8px 25px rgba(245, 71, 110, 0.035);
}

.intro::before {
  content: "";

  position: absolute;

  top: 17px;
  bottom: 17px;
  left: 0;

  width: 3px;

  border-radius: 99px;

  background: var(--legal-gradient);
}

.intro strong {
  color: var(--legal-text);
}


.terms-contents
 {
  position: relative;

  margin-top: 36px;

  padding: 25px;

  background: #ffffff;

  border: 1px solid var(--legal-border);

  border-radius: 18px;

  box-shadow:
    0 8px 28px rgba(25, 15, 20, 0.035);
}

.terms-contents h2{
  margin: 0 0 18px;

  color: var(--legal-text);

  font-size: 16px;

  font-weight: 800;
}

.contents-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px 16px;
}

.contents-grid a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 38px;

  padding: 7px 10px;

  border-radius: 10px;

  color: var(--legal-text-secondary);

  text-decoration: none;

  font-size: 13px;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.contents-grid a::before {
  content: "→";

  margin-right: 8px;

  color: var(--legal-pink);

  font-weight: 800;

  transition: transform 0.2s ease;
}

.contents-grid a:hover {
  background: var(--legal-pink-soft);

  color: var(--legal-pink-dark);

  transform: translateX(2px);
}

.contents-grid a:hover::before {
  transform: translateX(3px);
}


.clause {
  position: relative;

  scroll-margin-top: 105px;

  margin-top: 48px;

  padding-top: 2px;
}

.clause + .clause {
  padding-top: 32px;

  border-top: 1px solid rgba(245, 71, 110, 0.07);
}

.clause h2 {
  position: relative;

  margin: 0 0 17px;

  padding-left: 15px;

  color: var(--legal-text);

  font-size: 20px;

  line-height: 1.4;

  font-weight: 800;

  letter-spacing: -0.25px;
}

.clause h2::before {
  content: "";

  position: absolute;

  left: 0;
  top: 4px;

  width: 4px;
  height: calc(100% - 8px);

  min-height: 20px;

  border-radius: 99px;

  background: var(--legal-gradient);
}

.clause p {
  margin: 0 0 16px;

  color: var(--legal-text-secondary);

  font-size: 14.5px;

  line-height: 1.9;
}

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

.clause strong {
  color: var(--legal-text);

  font-weight: 750;
}

.clause ul,
.clause ol {
  margin: 15px 0 19px;

  padding-left: 24px;

  color: var(--legal-text-secondary);

  font-size: 14.5px;

  line-height: 1.85;
}

.clause li {
  margin-bottom: 8px;
}


.section {
  margin-top: 46px;
}

.section h2 {
  margin: 0 0 15px;

  color: var(--legal-text);

  font-size: 21px;

  line-height: 1.4;

  font-weight: 800;
}

.section p {
  margin: 0 0 15px;

  color: var(--legal-text-secondary);

  font-size: 14.5px;

  line-height: 1.9;
}

.section strong {
  color: var(--legal-text);
}



.info-list {
  display: grid;

  gap: 10px;

  margin-top: 19px;
}

.info-item {
  position: relative;

  padding: 15px 17px 15px 20px;

  background:
    linear-gradient(
      90deg,
      #fff7f9,
      #ffffff
    );

  border: 1px solid var(--legal-border);

  border-radius: 13px;

  color: var(--legal-text-secondary);

  font-size: 13.5px;

  line-height: 1.75;
}

.info-item::before {
  content: "";

  position: absolute;

  top: 16px;
  bottom: 16px;
  left: 0;

  width: 3px;

  border-radius: 99px;

  background: var(--legal-pink);
}

.info-item strong {
  color: var(--legal-text);
}

.important-notice {
  position: relative;

  margin-top: 34px;

  padding: 21px 23px 21px 26px;

  background:
    linear-gradient(
      135deg,
      #fff3f6,
      #fff9fb
    );

  border: 1px solid var(--legal-pink-border);

  border-radius: 15px;

  color: var(--legal-text-secondary);

  font-size: 13.5px;

  line-height: 1.8;
}

.important-notice::before {
  content: "!";

  position: absolute;

  left: -12px;
  top: 18px;

  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--legal-pink);

  color: #ffffff;

  font-size: 12px;

  font-weight: 900;

  box-shadow:
    0 4px 12px rgba(245, 71, 110, 0.25);
}

.important-notice strong {
  color: var(--legal-text);
}


.legal-footer {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 48px;
    border-top: 1px solid rgba(245, 71, 110, 0.12);
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 15px;
}

.footer-links a {
    position: relative;
    color: var(--legal-text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
        margin-top: 15px;
}


.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    border-radius: 999px;
    background: var(--legal-pink);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--legal-pink);
    transform: translateY(-1px);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}


.legal-footer p {
    margin: 0;
    color: var(--legal-text-muted);
    font-size: 11.5px;
    line-height: 1.7;
    letter-spacing: 0.01em;
}




@media (max-width: 850px) {

  .header-inner {
    width: calc(100% - 32px);

    min-height: 68px;
  }

  .page-wrapper {
    width: calc(100% - 32px);

    padding: 42px 0 60px;
  }

  .legal-card {
    padding: 44px 36px;
  }


  .contents-grid {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .contact-highlight-content {
    align-items: flex-start;

    flex-direction: column;
  }

  .email-button {
    width: 100%;
  }

  .legal-footer {
    width: calc(100% - 32px);
  }
}



@media (max-width: 560px) {

  .legal-header {
    position: relative;
  }

  .header-inner {
    width: calc(100% - 20px);

    min-height: 62px;

    gap: 10px;
  }

  .brand {
    font-size: 19px;
  }

  .brand::before {
    width: 7px;
    height: 7px;

    box-shadow:
      0 0 0 4px rgba(245, 71, 110, 0.10);
  }

  .back-link {
    min-height: 37px;

    padding: 7px 12px;

    font-size: 11px;
  }

  .page-wrapper {
    width: calc(100% - 18px);

    padding: 18px 0 35px;
  }

  .legal-card {
    padding: 32px 19px;

    border-radius: 20px;
  }

  .page-title {
    font-size: 30px;

    letter-spacing: -1px;
  }

  .page-title::after {
    width: 43px;

    height: 3px;

    margin-top: 14px;
  }

  .page-subtitle {
    font-size: 13.5px;
  }

  .last-updated {
    font-size: 10px;
  }

  .intro {
    margin-top: 25px;

    padding: 18px 17px 18px 20px;

    font-size: 13px;

    line-height: 1.8;
  }

  .terms-contents
   {
    margin-top: 27px;

    padding: 18px;

    border-radius: 15px;
  }

  .contents-grid a {
    min-height: 36px;

    font-size: 12px;
  }

  .clause {
    margin-top: 37px;
  }

  .clause + .clause {
    padding-top: 25px;
  }

  .clause h2 {
    font-size: 17px;

    padding-left: 12px;
  }

  .clause h2::before {
    width: 3px;
  }

  .clause p,
  .clause ul,
  .clause ol {
    font-size: 13.5px;

    line-height: 1.85;
  }

  .contact-highlight {
    margin-top: 26px;

    padding: 23px 19px;

    border-radius: 17px;
  }

  .contact-email {
    font-size: 16px;
  }

  .email-button {
    min-height: 43px;

    font-size: 12px;
  }

  .support-grid {
    gap: 12px;

    margin-top: 27px;
  }

  .support-card {
    padding: 20px;

    border-radius: 15px;
  }

  .support-card h3 {
    font-size: 16px;
  }

  .support-card p {
    font-size: 13px;
  }

  .section {
    margin-top: 35px;
  }

  .section h2 {
    font-size: 18px;
  }

  .section p {
    font-size: 13.5px;
  }

  .info-item {
    font-size: 13px;
  }

  .important-notice {
    margin-top: 27px;

    padding: 18px 17px 18px 21px;

    font-size: 13px;
  }

  .important-notice::before {
    left: -9px;

    width: 21px;
    height: 21px;

    font-size: 10px;
  }

  .legal-footer {
    width: calc(100% - 18px);

    padding: 23px 0 32px;
  }

  .footer-links {
    gap: 8px 14px;
  }

  .footer-links a {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}






