/**
 * Terms of use — Figma 133:1728
 */

.hds-terms {
	width: 100%;
	max-width: var(--hds-legal-rail);
	margin: 0 auto;
	padding: 53px 0 120px;
	box-sizing: border-box;
}

.hds-terms__title {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	margin: 0 0 105px;
	padding: 0;
	color: #000000;
	font-weight: 400;
	line-height: 1;
}

@media screen and (min-width: 782px) {
	.hds-terms__title {
		margin-left: -179px;
	}
}

.hds-terms__title-en {
	font-family: "Cormorant Garamond", "EB Garamond", serif;
	font-size: calc(45px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	/* Match Privacy policy — trim EN metrics so JA sits on the same baseline */
	text-box: trim-both cap alphabetic;
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
}

@supports not (text-box-trim: trim-both) {
	.hds-terms__title-en {
		display: flex;
		align-items: flex-end;
		height: 0.622em;
		overflow: visible;
	}
}

.hds-terms__title-ja {
	font-family: "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
}

.hds-terms__content {
	display: flex;
	flex-direction: column;
	gap: 80px;
	width: 100%;
}

.hds-terms__lead {
	margin: 0;
	color: #000000;
	font-family: "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.154px;
	text-align: justify;
	text-justify: inter-ideograph;
}

.hds-terms__heading {
	margin: 0 0 17px;
	color: #000000;
	font-family: "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 700;
	line-height: 1;
}

.hds-terms__sections {
	display: flex;
	flex-direction: column;
	gap: 62px;
	width: 100%;
}

.hds-terms__text,
.hds-terms__item-body {
	margin: 0;
	color: #000000;
	font-family: "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 400;
	line-height: 2.1;
	letter-spacing: -0.154px;
	text-align: justify;
	text-justify: inter-ideograph;
}

.hds-terms__text p,
.hds-terms__item-body p {
	margin: 0;
}

.hds-terms__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.hds-terms__item-heading {
	margin: 0;
	color: #000000;
	font-family: "Noto Serif JP", serif;
	font-size: calc(14px * var(--hds-type-scale, 1));
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.154px;
}

@media screen and (max-width: 781px) {
	.hds-terms {
		padding: 32px 0 80px;
	}

	.hds-terms__title {
		flex-wrap: wrap;
		align-items: flex-end;
		margin-bottom: 48px;
	}

	.hds-terms__title-en {
		font-size: calc(32px * var(--hds-type-scale, 1));
	}

	.hds-terms__content {
		gap: 56px;
	}

	.hds-terms__sections {
		gap: 40px;
	}
}
